depollution of global scope and comment removal

Moved some functions and variables you don't want to see from .c that isn't hallsensors.c