Add (messy) first version of library