Fixed style warning in random walker
Reworked base_k conversion according to spec, and added zero prepending function