 }
 
 
-func hex(mem: UInt8[]) -> String {
+func hexFromArray(mem: UInt8[]) -> String {
     let str = NSMutableString(capacity: mem.count * 2)
     for byte in mem {
         str.appendFormat("%02x", byte)
     }
     return str
-}
-
-func printmem(mem: UInt8[]) {
-    print(hex(mem))
 }
 
 struct PointerAndOffset {

                print("\(memory.buffer.count) bytes ")
                print(memory.isMalloc ? "<malloc> " : "<unknwn> ")
                
                printmem(memory.buffer)
//                if pointers.count > 0 {
//                    print(" ")
//                    print(pointers.map{ formatPointer($0) })

        
        return strings
    }
    
    func hex() -> String {
        return hexFromArray(buffer)
    }
}

func formatPointer(ptr: UInt) -> String {
