Fixed output bug and removed save to excel file so that it saves it automatically