Added comments, removed useless code
Added comments, removed global variables

Needs to be tested.

Global variables removed; replaced by arguments in the functions using
them. This means that the flags need to be created in main.c and passed
as parameters to the functions.
Affected functions are:
void counter(int * counter, int * flag)
void column4(int * counter)
void printSWatch(char * flag)