Any documentation for creating custom modes?

Great! This helps me get started. Thank you very much