print logs to STDOUT except errors. Fix #272
print Usage to STDOUT rather than STDERR.
Add test for exit code