Added log likelihood for NIW. Fixed some bugs