Small edits, starting on a dynamic grid generator in php