added node/edge classes + support for pos/deprel weights