added subroutine for printing egrid