add xlabel and ylabel to plot and switch from tabs to spaces