Fix bugs with generating the grid. Ignore .swo.