Fixed typos in documentation and comments