Minor changes

Tried to unify style a little bit.

In particular, I've removed instances of `write-host`. Unless there was a conscious reason to use it, it should always be avoided.

http://www.jsnover.com/blog/2013/12/07/write-host-considered-harmful/
Ooops. That's a mistake.