fix indentation
refactor docstrings
add the option to specify identifier as {"field": "fieldname", "transformer": "function"}