Moved msg_base out to its own file; little fixes added.