Updated with api functions

Documentation are yet to be made.