Basic file output working, need to encode