added tests and squished bug
updated readme
corrected mistake