Added method for getting groups of nodes. added start of skill in training parsing. small refactoring