notice fixes
Fixed missing 'filters' field in table cividiscount_item.
preliminary tidyaup whitespace & comments tidy up, fix spelling, add implicit return