Add main library and tests.