added readme, bug fixes