Code cleanup. Spelling, documentation, and fixed a closure bug in emitRoomDataDelta()