improve documentation and fixed typo