write error messages
Merge pull request #17 from andrewblond/error_messages

write error messages