ENH: ignoring comment lines and empty lines in CSV files

closes #4466 

the two lines are partially duplicated