libyaml integration and readyaml() function