adding 'wrap(..)' plugin, tests, docs, closes #32