Fixed bug when program incorrectly labels libraries

I fixed such that libraries are considered a new type altogether. Should
not conflict with anything else from the previous assignments
(hopefully).