fixed several errors in fari.py and in grids.txt