added code to generate accuracy maps and more