expanded language; improved UID model; added laplace smoothing