Make tests compile.
gofmt sources.
Document major quirks of chart.