script implemented to generate report files automatically