repaired error codes in app.js
fixed typo in logCtrl.logInit
tried to fix error display. still a bit weird.