added comments and fixed spacing error