Fixed issues with invalid lines, commented header, and delimiter=None