Error handling added on MIME types; gitignore added; modified Readme file.