fixed bug occurring when a line contains both a valid directive and a comment
moved comment removal before the loop
Merge pull request #1 from marcovisona/master

fixed bug occurring when a line contains both a valid directive and a comment