Revert "Revert "Add some comment""

This reverts commit 328bfbe116ba1cfc954c81b3599c3365d49a01f9.
Add Log to see the program flow