Reformatted how list groups returns. Updated code comments.