Refactored symbol table, added function-related methods
Removed deprecated "SUB" type
Added code to type checking visitor