Fixed documentation, added logical groupings.

* Changed State -> ObjectState
* Rearranged grouping of Endpoint fields
* Added logical grouping of Permission constants
* Added logical grouping of MCC constants