email functionality added for ODK visits - basic code structure