Remove path finding lines of code from inside the functions
Remove path finding lines of code from inside the functions

since the path finding step is common for both plugin versions(macoz,linux) it is moved
out so both versions have access and avoid duplication.
(also some documentation rearrangement)

sukeesh/Jarvis,sukeesh/Jarvis,sukeesh/Jarvis,sukeesh/Jarvis