Simplification thresholds read from external file

Simplification thresholds read from external file, changed output
character set from "UTF" to "system", miscellaneous optimizations