fixed bugs and updated readme