Use end-coords-list and contact states

Use end-coords-list and contact states instead of swing-leg-coords and support-leg-coords for generalization.