Added largely untested functionality to assign outputs to inputs when no explicit equation for them has been given.