Improved host address handling
Test for communication
Various fixes