Corrections to server main program so that it now listens to the network properly.