Switched to calloc where applicable, improved token printing utilities, fixed invalid regexes in lexer