Fixed a memory leak due to strdup in spawn_exec_shell.
Added doc part about feeding.