Added a bunch of XML comments.