Clear up comments to better explain what is happening. Add mediatype detection and setting for files.
Clear up comments to better explain what is happening. Add mediatype
detection and setting for files.

materials-commons/mcstore,materials-commons/mcstore,materials-commons/mcstore