fixed new line spacing, updated how regular files are output