Closes #49 and #50 - error checking custom field calculator functions