updated initializes of datastore. added debug commits to app.js