Clears up preprocessing and postprocessing code and tests.
Adds documentation for preprocessing and postprocessing.
Removes extra newline.
Clarifies documentation string.