Main API refactoring.
Updated swift method order.
Update swift method order.
Updated method order.