Added basic symbol table checks and main pass.