added other equations and objective functional.

p changed to pp, cause GASM is caseinsensitive. Also, I ignore g0 now.