Complete code for HDF5 and CSV structured array output.

Currently only the timesteps are output - the psn and nbh arrays that are output are just dummies.