added some post-processing and summary commands at the bottom of main wrapper file