Expand single-use definitions

Replace all single-use documentation constants with their actual values.
This makes the documentation easier to follow (less cross-referencing).
Expand selector documentation.

Instead of simply listing selectors, describe how they work explicitly.