Cleaning up documentation and reusing update logic