Extended documentation and fixed typos