save the current working directory with the settings

each time a file is opened, the directory of the file is saved, which
is saved in the settings upon terminating the program and restored
upon starting

also added constant strings for the names of the settings