Add statistics visualization

Fix #41 and #40