Document module configuration types.
Add argument validation for configuration types.