initialised nDropsOff to 0 in constructor
added includes for error checking and abs function