Updated doscar.py
More robust grid-reading code