Added methods to generate node definitions from file