make visible characters for whitespace configurable
tests for formatting whitespace
added Settings framework
fix lineendings