code cleanup, fixed report header filename bug