added documentation and switched heuristic from euclidean to manhattan