added support for nested in fields
improved code
Merge pull request #29 from crate/nested

added support for nested in fields