Added user preference editting in the program, fixed bug with file reading