implemented most of smooting. Still need to do singleton estimates!