fixed errors and typos