fixed bugs and updated README