Fixed bug in prepare_value in custom field which stopped frontend form from showing.
Updated so no duplicate datafiles