Improved documentation a bit and fixes some typos.