functions now have own section in xreferencer/parse tree and varibles have proper nesting level