correct some errors and typos