moved part of PathClass into class declaration
added openmp paralleization. added shift ref bead move.