included yuidoc building in Gruntfile
moved most Convex function to the prototype