Implemented beginnings of new file creation

I through together some code this morning to create a new file, and well, it seems to be able to create and save a new file, but I can't do anything with it. It is unclear to me if this is because other hunks of code are incomplete or if I am doing something wrong. 

I don't know that I will have a whole lot of time to do any more work on this, but if I can muster some more time, I will see if I can advance this anymore.