added custom doc and win functionality

fix tests

removed diff
Merge pull request #324 from botverse/custom-doc-win

added custom doc and win functionality