Remove old output, fix small bugs (extra \n)