formatting and other cosmetics changes.
on Linux and OS X, disable console coloring if stderr is not bound to a terminal.