updated readme and added more tests