redirect output of errors to stderr

Redirect output of errors to stderr (`> &2`)

Also removed some duplicate whitespace