Modification: fix numerical inaccuracy issues in the boundary sampling.
Add boundary comments to the documentation.