rough draft of saveSession script
Merge remote-tracking branch 'upstream/demo/cbk_tests' into demo/cbk_tests
updated saveSession to fix some errors and include a test
Merge remote-tracking branch 'upstream/demo/cbk_tests' into demo/cbk_tests
fixed "saveSession" vs "save_session" typo.