Bug fix for parsing very odd Gaussian input files. Added unittest.