Final Submission

A few more minor details in the code structure. Added more Comments