cleaned up the mscentipede script; need to rewrite optimization routines using cvxopt.