parsing of variables and functions, some nodes, functions, some refactoring