Added missing code in magellan docs