Added or improved code documentation.