New master script

Updated master script for better handling of mixed model random effects
(allowing slope and intercept to vary differently among models), and
combined three functions into a single one