Added debugging messages
Made MidiPlayer run in seperate thread.
Fixed Possible Bug