Fix `else` coding style
Fix a bug to read entries correctly
Revise log messages using console.group