made a small error in redefining state, moved it to be redefined as 1 for the first capture of every individual.
new .txt files, after I found a bug in the code that creates them.