Make sure step counter is 64bit.
Add lots of docs (and missing test case).