adding readme and some fixes and cleanup