Treewalker complete

Tree walk of parse tree completes without issue.
Also includes checking to see if main function is the last function signature as per the grammar.