adding checkMins.py, fixing subtle minimizer bug