Added initial 'port' header for i/o to files, strings and sockets