Saving files from editor - issue #15

I also updated a few codes for tabbed interface