added core code, README, and testing scripts