Improved the wall reading code

I used the new wall reading API as the basis for meld reading (not yet implemented).

This makes for much more natural code without having to pry into internal data
structures.

This closes #1.