 /// Simple audio playback class
 public class AKAudioPlayer: AKNode, AKToggleable {
     
-    private var audioFileBuffer: AVAudioPCMBuffer
+    private var audioFileBuffer: AVAudioPCMBuffer?
     private var internalPlayer: AVAudioPlayerNode
-    private var audioFile: AVAudioFile
+    private var audioFile: AVAudioFile?
     
     private var internalFile: String
     private var sampleRate: Double = 1.0
-    private var totalFrameCount: Int64
+    private var totalFrameCount: Int64 = 0
     private var initialFrameCount: Int64 = -1
-    private var skippedToTime: Double
+    private var skippedToTime: Double = 0
     
     /// Boolean indicating whether or not to loop the playback
     public var looping = false

    /// Reload the file from the disk
    public func reloadFile() {
        let url = NSURL.fileURLWithPath(internalFile, isDirectory: false)
        let audioFile = try! AVAudioFile(forReading: url)
        let audioFormat = audioFile.processingFormat
        let audioFrameCount = UInt32(audioFile.length)
        audioFileBuffer = AVAudioPCMBuffer(PCMFormat: audioFormat,
                                           frameCapacity: audioFrameCount)
        try! audioFile.readIntoBuffer(audioFileBuffer)
        totalFrameCount = Int64(audioFrameCount)
    }
}

    }
    
    /// Replace the current audio file with a new audio file
    ///
    /// - parameter newFile: Path to the new audiofile
    public func replaceFile(newFile: String) {
        internalFile = newFile
        reloadFile()
