add comments for QueryLiklihood class