adding getters for mode/flow in state
Merge branch 'master' of github.com:vaughamhong/nimble