fix default value of input
Add pickling methods and register them. Static methods are still a problem.
Refactor apply functionality in TextFile, not sure how to do it for TextFiles.