updating credits and Adding API Code