added CommandExtractor

command extractor removes comments and finds first semicolon followed by
a new line as end of command.  This allows files to be parsed without
the first syntax error causing the rest of the file to be discarded.