Added program change detection

I thought that it might be useful to be able to actually use the instruments proposed in the midi file. This modification just passes program changes to MIDI.

Is there any good way to load only the instruments needed for the processed midi-file? Maybe iterating over all events once in the beginning and simply checking for programChange events?