Added Logger and proper comments

Added Logger to maintain logs and comments to understand code