Rename variables for less confusion
Rename 'min_complexity' argument to 'threshold'
Fix the get_*_complexity functions