added row and col validity testing in LexicalAnalyzer
working on type checking