Working solution for question 1. There are flags (static final bool's) that can be toggled to output stats and stuff.