formatting
first draft of MIDI file writer