Allow override detected MIME type
Add API docs