made pathLegth more generic for use across computers
deleted a cout statement