Optimized prettyPrint() method.
Treating strings as categoricals.
A bunch of minor changes.