Add godocs for domain API.  Fix type error.