updates gemspec. adds error handling for submissions