add a getState method
fix getGommand to deal with state commands
Merge branch 'master' of github.com:latproc/latproc