ENH: ignoring comment lines and empty lines in CSV files

closes #4466 

Amended to add this in