added preprocessing tools, and test