Began adding getLibrary function
Finished adding getLibrary function