Began integrating scope checking functions with main project. This is still not working, and is generating lots of false 'undeclared identifiers'