Updated example app and minor fixes in resource loading