modified mode types. Fixed other typos in codumentation.
Merge branch 'my'