Improve interface
Add test for state stack
Merge branch 'master' of github.com:mythagel/cxxcam