Added docs and example for custom engines, fixes #270