Added a few cosmetic changes to the code (a few comments, spacing, etc.)