bug fixes and updated README.md