Improvements to the documentation and some comments.