Added method to AbstractFile to check mime type. Deprecate duplicate method
changed treeset to slightly more generic sortedset