Add docblock
Fix
Refactor how average complexity is calculated and implement minimum/maximum measures