Update global.c

Add lot of comments...