Fixed documentation for API