API examples updated