rearranging
some graph transformation cleanup
adding resid to state mapping for solver
merge ken
added some graph reduction tests, fixed an issue with mutiply redirected inputs
small fixes for Bret