Add library

Linking users to the library is not finished.