Added Documentation to api functions