Refactored architecture switch

Set the both the server and client configuration properties for release
mode.
Modified the architecture of the packet exchange system.
Refactored and provided Doxygen documentation for all header files.