update exercise writing to files

added save option to open file, added save function, asked user if they
wanted to rewrite file, excite commands