Redmine#5342: document CheckPackageState and fix some doc typos.