Support HWE when counts equal zero and better LogFile class