Fixing a bunch of minor errors, attempting to find the memory leak
VelCpCurve was constantly being rebuilt and the new instances outpaced the GC