fixed indentation and added comments, CRM-14503

----------------------------------------
* CRM-14503: Incorrect global groups listing
  https://issues.civicrm.org/jira/browse/CRM-14503