Floundering around trying to get these stats to work.
Added makefile and test suite.