Incorporated RH edits, added pairs plot, small change to R and tpl files to make bounds on Z dynamic