Allow for setting ad_form's mode

The default behaviour did not change, but one can now set ad_form's mode
to "display", which is used by some applications.
Recognize @param and @see

Include parameter documentation and "see references", if available.