added state counters, refactored initialization
Merge branch 'master' of github.com:neocortical/goha