Added further code to catch negative particle numbers in a bin