title: Core Motion Swift Closure issue
body: <p>I'm trying to convert an old game application built in obj-c to the new swift code. i'm having some issues understanding swift closures and how to use them for example in the"startAccelerometerUpdatesToQueue" method.</p>
  
  <p>i have initialized the motion manager in this way </p>
  
  <pre><code>motionManager!.accelerometerUpdateInterval = (1/40)
  </code></pre>
  
  <p>then in the viewdidload of my view controller</p>
  
  <pre><code>var queue:NSOperationQueue
  motionManager?.startAccelerometerUpdatesToQueue(queue, withHandler: {(accelerometerData :     CMAccelerometerData, error : NSError) in
  
  
  })
  </code></pre>
  
  <p>the "startAccelerometerUpdatesToQueue" is giving me an error and i'm pretty sure i didn't understand the correct closure syntax.</p>
  
  <p>Any ideas? </p>