 //  
 //////////////////////////////////////////////////////////////////////////////////////
 
-package com.freshplanet.ane
-{
+package com.freshplanet.ane {
+	
 	import flash.events.EventDispatcher;
 	import flash.events.StatusEvent;
 	import flash.external.ExtensionContext;
 	import flash.system.Capabilities;
 
-	public class AirDeviceId extends EventDispatcher
-	{
-		private static var _instance:AirDeviceId;
+	public class AirDeviceId extends EventDispatcher {
 		
-		private var extCtx:ExtensionContext = null;
+		private static var _instance : AirDeviceId = null;
+		
+		private var _extCtx : ExtensionContext = null;
 		private var _id 	: String = null;
 		private var _idfv	: String = null;
 		private var _idfa	: String = null;
 		
-		public function AirDeviceId()
-		{
-			if (!_instance)
-			{
-				extCtx = ExtensionContext.createExtensionContext("com.freshplanet.ane.AirDeviceId", null);
-				if (extCtx != null)
-				{
-					extCtx.addEventListener(StatusEvent.STATUS, onStatus);
+		/**
+		 * AirDeviceId constructor
+		 */		
+		public function AirDeviceId() {
+			
+			if ( !_instance ) {
+				
+				_extCtx = ExtensionContext.createExtensionContext( 'com.freshplanet.ane.AirDeviceId', null );
+				
+				if  (_extCtx != null ) {
+					_extCtx.addEventListener( StatusEvent.STATUS, onStatus );
 				} 
-				else
-				{
+				else {
 					trace('[AirDeviceId] Error - Extension Context is null.');
 				}
+				
 				_instance = this;
 			}
-			else
-			{
-				throw Error('This is a singleton, use getInstance(), do not call the constructor directly.');
+			else {
+				throw Error( 'This is a singleton, use getInstance(), do not call the constructor directly.' );
 			}
 		}
 		
-		public static function getInstance() : AirDeviceId
-		{
+		/**
+		 * singleton getter
+		 * @return 
+		 */		
+		public static function getInstance() : AirDeviceId {
 			return _instance ? _instance : new AirDeviceId();
 		}
 		
-		public function get isOnDevice():Boolean
-		{
-			var value:Boolean = this.isOnIOS || this.isOnAndroid;
+		/**
+		 * @return test for determining if this is being run on a device
+		 */		
+		public function get isOnDevice() : Boolean {
+		
+			var value : Boolean = this.isOnIOS || this.isOnAndroid;
 			return value;
 		}
 		
-		public function get isOnIOS():Boolean
-		{
-			var value:Boolean = Capabilities.manufacturer.indexOf('iOS') > -1;
+		/**
+		 * @return 
+		 */		
+		public function get isOnIOS() : Boolean {
+			
+			var value : Boolean = Capabilities.manufacturer.indexOf( 'iOS' ) > -1;
 			return value;
 		}
 		
-		public function get isOnAndroid():Boolean
-		{
-			var value:Boolean = Capabilities.manufacturer.indexOf('Android') > -1;
+		/**
+		 * @return 
+		 */		
+		public function get isOnAndroid() : Boolean {
+			
+			var value : Boolean = Capabilities.manufacturer.indexOf( 'Android' ) > -1;
 			return value;
 		}
 		

		 * Define your own API and use extCtx.call() to communicate with the native part of the ANE.
		 */
		public function isSupported() : Boolean {
			return extCtx.call( 'isSupported' );
		}
		
		/**

			
			if ( !this._idfa ) {
				
				this._idfa = _extCtx.call( 'getIDFA' ) as String;
				
				if ( this._idfa == '00000000-0000-0000-0000-000000000000' ) {
					this._idfa = null;
