added more comments for std::cerr and std::endl