added report generation and pickle