Added more code for notifying MainWidow that message was received. Currently there's a very insidious bug crashing it that seems to be a race condition. Haven't figured out how to solve it, but added locks in attempt (the locks are probably necessary anyway).