getdomain() done; some cosmetic; copyright; bit documentation; working; TODO: smartrns.data.state (available, not available)