flatten char parse tree; add token tests for some tokens
more token tests
minor changes to index.js