added report generation code. Now supports console and html reports :)