Changed default port, add documentation, changed to ret namedtuple