refactored the way that documentation is updated