changed port numbers to be consistent with examples
fixed example after testing it out properly