Added default mime.json and updated formatting and fixed dirty flag not being set