add support for superscripts and subscripts

resolve Issue #41
- superscripts (^), subscripts (~)
- add doc and test