implement and test preprocessors
Merge pull request #5 from robertzk/preprocessors

implement and test preprocessors