Adds beginning of readmidi, which reads the midi file header