Added newfile.

* newfile adds some function I needed
* newfile fixes a bug we have