Added unit tests, fixed missing semi-colon bug and updated README.md as required.