Added unit test, and a more useful readme

Added unit test, and a more useful readme