Added documentation of API