attempted to make malmquist prior work. It currently does not
added a test to see whether utils.sum_logs gives a negative number, and throws an error if it does instead of returning "nan"