Merge pull request #8 from pradpnayak/GEP-6

-- GEP-6, code cleanup and customPre and customPost fixes
-- GEP-6, fixed setting of default profile fields at time of editing