Update API documentation, made it a bit more consistent