Reorganize and update api examples