Amending some of Dwight's comments:
   - added a check to ensure [bracket] is used properly
   - fixed some comments.