Document constructor of API class