Fixed package, added unit tests and updated README