cleaned up, added README and tests