Rename single letter variables
The codebase contains a good number of single letter variables which are not descriptive and can make code difficult to understand. They should be renamed to know what they represent at first glance.
Common offenders are k
, v
, i
and j
.
The use of f
to represent an open file object might be acceptable, but they could also be renamed.