Many bug fixes, added README