That looks about right.

That said, I am not going to write all of that in the help file.

The purpose of the help file is to give an overall description of how a feature works, with some examples, not to provide pseudo-code that mirrors every possible if statement, exception, etc. in the actual code.

In fact, I wouldn't depend on the above pseudo-code at all, because I might change the code completely in the future.