Changes to the every target analysis, ratio of curved distance to linear distance, clean up unused variables, start to preallocate