Plugin system expanded

* more unittests for plugins
* docs modified
* ignore vim .swp files