ENH: ignoring comment lines and empty lines in CSV files

closes #2685 
closes #4466 

Oops looks like a copy/paste error, fixed in the latest commit