modified infgrid.py : documentation