Changed how hyperpriors are specified, added new JointPrior class.