Changing sapply to lapply prevents occasional errors.
Adding vars from trialData and currentPatient$VVenv to networks.
Names of the VGs must be unique.
A new print method for VGs; improved printFunctionBody, not reliant on srcfile.
New "show" method for Variable.
Adding & correcting code for calculating response outcome from threshold.
ctde for convenience.