updated giraffe, optimized for giraffe, add to examples