Rename ntok to rank
Remove log statements
Clean up command line interface