re-work structure to facilitate scripting experiments
change defaults
add data processing code