Added documentation for the BSD code.