Added lots of debug statements. Made some code uniform. Finished up more onMessage routines. And then some