Clean up code and fill in missing functionality

Most preprocessing functionality works
Recursive descent of directories works now
FileDocument's cannot be modified any longer
Some ref and show methods for DTM's