Fixed bugs in state matrix.
Updated token types. Added check for keywords, length of string, int and identifier,
Added comment.
Improved the algorithm for building state matrix. Now slightly more efficient.