app: added more tests.
app: documented the stats.go file.