Improve docs for custom types