Fixes error messages

Appends '\n' where it was missing and prints errors to stderr
Merge pull request #16 from ffunenga/feature/fix-error-msgs

Fixes error messages