ENH: ignoring comment lines and empty lines in CSV files

closes #4466