made it so get the file descriptor for STDOUT from os.Stdout.Fd(), instead of just hardcoding it as 0 (zero). also removed some commented out debug code, that got accidentally committed.