Fixed some demo app code (#105).