added algorithm comments. added pred_path output file