Pulled the code to convert an error code into a readable error message into its own function, get_readable_error, to enable it to be called with a single error.

Updated the readme to reflect the new function.