Renaming console.main module and adding some comments