move comments from state.c to state.h
comment transfer.[ch]
worker.[ch]: put "void" in empty argument lists
move comments from state.c to state.h