Real changes

Now opens files and creates new files if necessary. Needs input
validation.