Added build files. Implemented unit tests.