convert `format()` to magic methods

MD classes now use __str__ and __unicode__ to generate text representations
document MDAttribute class
fix typo
document MDComparison class