updated documentation code