Cleanup and documentation for vitter's r.