The only limits you have are the ones you set for yourself.
The best way to document a program is to document it.