Added another boundary case check, for the entropy definition at the end of update()

Also added some comments on bruteforce pattern entropy