Minor improvements

* Remove unneeded imports
* Ignore modules/ and classes/
* Speed up formatting marginally (hopefully) by means of a faster way to
trim the indentation string
* Remove unnecessary string optimizations in testSamples