state declaration moved

moved state=uninitialized from header file to library.c