Factor comment parsing into a plugin

Issue #112