updated readme
added unit test scheme
simplified API