Base: Add comments and fix bug with localization

Fixed issue opening app as a file without PhoneGap