Some fixes and, if wanted, api exposed to the interactive viewer
The first commit exposes some api functions to the interactive viewer, which was useful for the presentation. I don't know if this should be merged, left as a stale branch, simply deleted or reverted with another commit before merging to keep it in the history.
The three subsequent fixes should get merged.