Documentation to API and some testing