Build cidr also.
Improve robutness of simple_tcp_server module.
Removed some debug lines, removed unused functions.