Minor cosmetic changes.
Finish (sort of) the random grid generator.