some bug fixes and readme additions