Labelled the search options.
The library view now shows previews of the documents.
Cleaned up the new thumbnails a bit.
Made it so that documents cannot be added to the library twice.
Cleaned up the code that checks whether a given document is in the library or not.
Added icons.