-Organized code structure
-Added more comments