MidiFile cleaned up