added --mime-type option
added test code
updated docs re: --mime-type