Clean up the api & documentation.