added testing framework
added inline documentation
updated Readme
added simple test
corrected test