     
     override func viewDidLoad() {
         super.viewDidLoad()
+        let loaded_data = loadDrumKits()
+        drumKits = loaded_data.0
+        selectedDrumKit = loaded_data.1
         
         //set the time to "now" for all instruments
         players["Hi-Hat"]!["time"] = Date()

    var orientationBuffer = RingBuffer()
    let magValue = 1.0
    var numDataPoints = 0
    var recording = false;

    var indicatorView: ESTMusicIndicatorView!
    var startAnimating: Bool = false

                
                if let prediction = responseData["prediction"] as? String {
                    
                    if let gesture = self.drumKits[selectedDrumKit].gestures[prediction] {
                        let instrument = gesture.instrument
                        
                        let date = self.players[instrument]!["time"] as! Date
