Scope rules. Error reporting

Added error reporting code. Began basic scope with class names,
members, parameter names, and local variables. No real support for
references yet.