Changed design of write_space_hdf5. Pending testing, #37 may be taken care of.