Added field_names to functions generated.
Added documentation about field names and accessors.