Fixed several mistakes and typos.