added matrices to gitignore
corrected the grid input file handle