added functionality for adding a library and records