Added comments to update account function

Mentioned which classes it accesses and where information travels.