moved mimetype functions to global
added composer def
Updated readme
updated source information on functions