added save function.  Also added a lot of clears in different parts of the menu.  added the   var in some parts to facilitate entering file names.