Initial implementation of distance operator with associated tests and example XML. Application of formatting rules.