Update mime.rb

Added documentation to the code, and the ability to run mime through itself to document itself.