adapting tmp.py to using stack (WIP)
Fixed node creation using stack
Refactoring with comments, cleaner class functions