Move communication stuff out of main

com := NewCommunication() ?