Wrote main class to do pre-parse processing of documents