Final bits: templates for number grid and code cleanup and documentation