fixed some initialization bugs and added text plugin to docs folder