Some API documentation, unfinished