         range.length = 4
         
         var value:Float32 = 0.0
-        if endian == Endian.BIG_ENIDAN
+        if endian == Endian.BIG_ENDIAN
         {
             var bytes = [UInt8](count: range.length, repeatedValue: 0)
             data.getBytes(&bytes, range: range)
-            bytes.reverse()
+            bytes = bytes.reverse()
             
             value = UnsafePointer<Float32>(bytes).memory
         }

        var value:Int16 = 0
        data.getBytes(&value, range: range)
        position += range.length
        return endian == Endian.BIG_ENIDAN ? value.bigEndian : value
    }
    
    func readInt32()->Int32

        var bin = bytes.data
        if offset > bytes.length
        {
            var zeros = [UInt8](count: offset - bytes.length, repeatedValue: 0)
            bin.replaceBytesInRange(NSRange(location: bytes.length, length: zeros.count), withBytes: &zeros)
        }
        
        bin.replaceBytesInRange(NSRange(location: offset, length: length), withBytes: &list)
