added basic preprocessing code
Merge pull request #2 from jwayne/josh

(for lawrence) added basic preprocessing code