Code is now modularized

Split the code into classes, as it was getting too big for one file.
Also, included PDFMiner in the source so that we can edit it when
needed. The save feature is also implemented, but it's not working yet.