Rewrite to use config file, allow comments to be ignored, and output results to separate files