corrected the mimetype
added the content length
cleaned up some useless declarations