Reorgonize repo structure.
Added simple unit tests.