changed status.h and .c to state.h and .c