sendfile is deprecated, changed to sendFile; removed hard-coded port number