stubbed out zState and zDecisionGate. also moved utility functions to zUtils.
oops, .DS_Store embarassment