Added a comment explaining some vars I use throughout scope checking
Changed an SA warning message
Fixed a bug that allowed an id to be declared multiple times in the same scope
Stop scope checking if an error is found