added a few comments, and corrected spacing