Text-based API
bugs fixed
Merge pull request #4 from odr/master

Text API