Updated code for yaml-cpp 0.5
PLEASE TEST LOAD/SAVE THROUGHLY