Merge grid access functions to master
This merges the branch generage_code_structure, which holds a large number of grid access functions, into the master branch.
This merges the branch generage_code_structure, which holds a large number of grid access functions, into the master branch.