reorganized files and have script for determining vector to account for distance in state space model