Neated up the Sync process

Added a settings page
Proper usage of LocalBroadcastReceiver
Variable rename from mVariable to variable and then using this.variable to reference member variables