added validity check for startKey and endKey in ShortestPathWithHeuristic
small fixes to code comments