Added message handling to communication module.
Fixed a couple message queue bugs due to bad pointers.
Added debug info to build.
Fixed port number bug.