             width=height;
             height=dummyVar;
         }
-        
+
         let previewLayer = AVCaptureVideoPreviewLayer(session: captureSession)
 
         previewLayer?.frame = CGRect(x: 0, y: 0, width: width,height: height)
         previewLayer?.bounds = CGRect(x: 0, y: 0,width: width,height: height)
-        previewLayer?.videoGravity = AVLayerVideoGravityResizeAspectFill;        
-        
+        previewLayer?.videoGravity = AVLayerVideoGravityResizeAspectFill;
+
         previewLayer?.connection.videoOrientation = AVCaptureVideoOrientation(rawValue: orientation.rawValue)!;
         camPreview.layer.addSublayer(previewLayer!)
 

        }
        captureSession.startRunning()
    }
    
    override func viewDidDisappear( _ p: Bool ) {
        super.viewDidDisappear( p )
        uMM.stopAccelerometerUpdates()
        captureSession.stopRunning()
    }
    
    //MARK: State Functions
    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?){
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil);

    override var prefersStatusBarHidden : Bool {
        return true
    }

    override var shouldAutorotate : Bool {
        return false
    }
