Add documentation for SAM in cookbook chapter Input_Output