Documentation / Docstring fuctions.
Modes: Implement mode registration and resolution.
Merge branch 'feature/modes'