Write and read problem_data and mapc2p in both ascii and petsc formats.

This resolves #34 and #236.