Added notes about generating random output.
Renamed vars relating to the permutation table.