Improved documentation a lot.