Update leaf_dynamics.py documentation.