Documentation clean-up. Version update to 1.40.0.