Added File I/O

Now has ability to open and save files. Problem is that when cancelling,
file still saves.