Made the API section of docs cleaner and more abstract.