added time stamps to midi data
added midi example
fixed 0 division in threads causing them never to finish and thus breaking lighting