Added ability to save and load preferences from a file!