Fix typo in README.
Clean up write_error.

This commit alters write_error to pull the message from a
get_message function of the error, else it using a default Unexpected
Error string.