fixed bug in GOF when N==0, added nObs to Emission
fixed nan bug in filterHD
fixed bugs in pre-filter