Rewrite lots of code
Rewrite some again; use Mustache for templates
Work on matches output
Add a makefile for preparing the required input files