Moved the function bindings to a different file (just header, should break it down). Added the binding for setting text on the whole document.