Update embedding documentation with Confluence example
little refactoring of demo controler