Add grid generation and prind scripts