Fix OS X build.
Update documentation.