Removed some junk, added a pdf generator