Added more commnets, spacings and removed unwanted print statements