fix typos in warning and minor wording changes