Changed output string to have spaces and newlines
Added information on temp file