Adding library and tests.