Cleaned up a couple debug statements and changed calc_confidence a little