ENH: ignoring comment lines and empty lines in CSV files

closes #2685 
closes #4466 

this is not reachable here (as their is an exception raise above), is that correct?