Designspace format work

More work on the designspace document format. Plus one bug in the
documentReader.