Fixed minor debugging bugs; some indexing fixed that will probably help debugging lots of the message handling, when I've got time to test it more thoroughly again.  Just wanted to get a bit in tonight.