A couple of super-simple basic inference methods, plus misc. stuff fixed along the way.