Debugged, code running except for min(cube)->segfault problem
trying to commit again to merge
changed back to old integrator input vector defns