replaced old goyaml dep with new one

I only changed a couple lines, the rest of the changes are just formatting changes made by Gofmt