fixed cut and psate errors as well as some typos