Added some plugin documentation and a few fixes for plugins