Fix regex for section headers
Allow comments at the ends of lines