updated readme, added tests