updated readme
added lots of tests and made some code mods to match