Print error messages to stderr

Update the output of error messages so that the messages go
to stderr instead of stdout.

Also reorder the imports into alphabetical order.

Fixes #26

Change-Id: Ib3eae2b70254787fd06d2f9997bc98feb65958d8