Documentation improved, xml mode added.