Added namespace declaration to MainController.php.
Changed </components/yaml/introduction> to </components/yaml/format> per PR feedback.
Merge pull request #2733 from alxp/code_snippet_fixes

Added namespace declaration to MainController.php.