Updated documentation and fixed typos