Update global.c

Add lot of comments...
Merge pull request #40 from Guilhem117/patch-31

Update global.c