Minor - format code, adding intval.
Fixing PHP warnings.
Adding progress in report see BT#8900