Add a proper comment parser

This is the first step for closing issue #1 by integrating proper parsed
list traversal into the tool.