moved the code into src dir, added independent unittests