Added scoping and datatype for symboltable and reviewed ast construction