Fix pango crash on Yosemite
Add valadoc