Added type and cleaned up api reference url.