added branch as parameter to update, defaults to master