Bug fix and added file save support

Fixed refresh bug
Added file save support but write still not do append yet.