appledoc comments.

This commit adds appledoc comments to part of the library.