Added source code and unit test; updated README