correcting documentation and typos