Edited code examples in first yaidom blog