Changed all references of window to this and added the possibility of updating/commiting more than one file at once