GPII-940 - Move Preprocessing, Cleaning Code and Adding Test

This pull request inculdes several commits. See each commit message for more details.