fixed spacing and added comments