Removed some of the unnecessary stuff from the demo.
Changed behaviour so that it also shows an alert when it detects changes