Add initial toString methods to Directory and Metadata classes.

Closes #44 and relates to #36.