Complex sentence: The gang managed to get members or friends into local law enforcement positons, with the idea being, for the most part, that their actions were to control the gambling establishments and rake in huge profits.
Split into simpler sentences: The gang managed to get members or friends into local law enforcement posiitons. For the most part their actions were to control the gambling establishments and rake in huge profits.