cleaned up lexer header, needed cstdlib, and cated out to cpp file