Also, make some of the functions also private to the module. Remove
unused functions discovered after that.
I am usually not a big fan of this type of actions. I like
structures to be in a header file instead of buried in the
.c file.. but if you really think its a good idea.. i guess its ok.. my
feelings are not that strong about it.
Rebased on newer main.