typo fixes
very basic text API and some cleanup