Add header snippet. Improve grid-code. Remove unused use-statements.