Added a bunch of documentation code to appropriate methods.