fixed (long standing..) bug in bayes calculations, p_f is now computed correctly and works with moment based error calculations