Updated the code to use the new version of the YAML C++ library.