documentation and fixed typos