Code refactoring for handling modifiers and discrete node. Tests have been created as well for math operations, apply modifiers and state initialization for discrete nodes.