change typenames and add an data-type attrib to .line .type
change deprecate currentDocumentChange to currentFileChange event