pch 1.3
Bugs fixed
the log-likelihood was not weighted
handling null weights