Abstracted channel initialization

- removed channel stuff from main
- corrected bug in the destination port for the config
- abstracted TCP/UDP string