[TGT-TTB] Tabs -> Spaces

Yea. I tried using tabs, and I hated it. So here is my commit back to spaces
[TGT-TTB] Removed Global file pointer

Removed the global file pointer and made is a static variable within a function
[TGT-TTB] Fixed Bug in out_file code

I was resetting out_file to stdout everytime outfile was called