Fix tile loading code to allow offline sources
Add demo app module
Rename function