Fixed a bug with forms without fields.

Updated documentation