Added API Example, fixed initial ready callback