fix some typo and improve documentation