updated readme and created unit tests