TCP/IP additions to the code and small changes to other parts of the SMELLIE run code