Hotfix/add compat

### Todo
* Clean up visitor.js
* Add missing docblocks
* Add and update documentation