continued work on analysis script, comments still missing