Fix up some minor issues.

* Trim down and move some comments.
* Expand doctest for method factories.character_floatfield.
* Fix a bug in method factories.skill_name.
Add class TraitFactory and supporting methods.
Add tests for Trait model.