fixed stupid errors in preprocessing
Merge pull request #12 from jwayne/josh

fixed stupid errors in preprocessing