added comments and manipulated group_size variable