Added JavaDocs to the api source.