Adding docs, fixing the counter class to use a long instead of an int.