Offline status notifications updated demo and added source code for that demo