Doxygen documentation & new connection engine

- Added Doxygen documentation in the source code
- Added a new connection engine which separates messages and files,
fixing issue  #1.