Added xml documentation, reordered namespaces, minor formatting changes