Fixed couple sample code, gendocs