Code Cleaned up and Added more Comments

- Code Cleaned up and Added more Comments & Clarifications