SuperEllipsoid Contact Geometry

The code I edited is for creating a new contact geometry, the superellipsoid. 
Please take a look and let me now what else is required to properly integrate this surface to the contact family.