working save to text file with interface, could use some cleaning up in save function