Cleaned and documented the demo and tested with Vaadin 7.