Added commenting

Added commenting to the API