Made better use of constants through stringification.
Added forgotten memory frees for calculator lexemes.
Improved on error handling