Update transport API
Modified API and added documentation