Finished prefs.xml and fixed a bug

Bug:  startActivity(CalculatorActivity.this, SettingsActivity.class);
causing exception (changed CalculatorActivity.class to
getApplicationContext()).