huge refactoring: now scope contain a local symbol table instead of a
single big table.
Improves efficiency and logical approach