Possible fix for Preferences.xaml problem
Lay some groundwork and add preferences window
Now you can actually change the default path
Fix graph drawing code