Added examples and definition structure

examples:
- how to retrieve array of field names
- how to work with sub-forms