Shrunk random message and reading code

Also went around and patched up a few things here and there.