Changed control flow of pre/post processing, bug fixes

1) Added pre and post processing functions for cleaner code
2) Added needed import 'math' in correctionRules
3) Added in all of the pre and post-processing so far.
4) Switched DirectTranslate back to actually doing a direct translation
5) Some of our rules remove words, but not spaces.  Added a
post-processing function (to be called at the veeeeeerrrrry end) that
removes double spaces.
6) Commented out debugging code.