Added grid code documentation.
Added syntax highlighting.