add Stats report, print output at the end, ready for REST API integration