Some work towards exporting a CellML file to some user format (#312).

It now works from the command line.