Add postprocess sub to reverse changes made to report for generation to work properly
Add final procedures
update to fix some minor errors
add pre and post-process subs
update to preprocessing procedure