char/string lexing
fill in some api stuff and fix a couple bugs
round out lexer, start on term parser