       return printAndExit("Unable to read Index header data")
     }
 
-    println("Loading Index version \(version)... ")
+    print("Loading Index version \(version)... ")
+
+    if let value = MessagePack.unpack(payloadData) {
+      if let dictionary = value.dictionaryValue {
+        let index = Index(dictionary: dictionary)
+
+        println("Done")
+        return
+      }
+    }
+    println("Error reading MessagePack data")
   }
 
   class func readHeaderAndPayload(path: String) -> (NSData, NSData) {

    } else {
      printAndExit("Unable to compiled regular expression: \(error)")
      return nil
    }
  }


import Foundation
import MessagePack

private let LINE_FEED: UInt8 = 10

