Enriched channel functionality and minor refactoring.
Implemented TCP client reconnect after connection failure (#6).