A little organization of code and comments.
Declare some functions as statics..