Made parse g line and parse m line handle comments better.