fixed tabs on first line of output and removed extra tabs at end of other lines