Formatted strings to work with Mallet

Removed all whitespace and punctuation.

Fixed minor bug where CreateDocuments classes were being declared and
instantiated in the wrong place and the database wasn't being updated.