Added some more to file_open; still need to finish up creation of file. Changed a few APIs.