Improve parsing of nwchem ouput. Add error detection and basis set detection.