added function getCoordVar and fixed issue with usePC being called to early
ran roxygen