Work in progress. Bug fixes. Export to PNG. Colour legend.