generateReport uses actual POST data. reorganized some comments