Added NewGridFromAscii function and tests