updated slope function to work across all models for PlanarBiped also added
constant parameters as separate variable in NLink.