Added checks to make sure all data is written out
Meld reading and writing implemented

This closes #3.

However, there are a still a few issues with the format (e.g. #4 and #5) that need
to be addressed.  So some additional cleanup is still required.  But I think the
base idea is sound.