Add documentation on traits