fixed some typos and errors. had forgotten to set remote address.