   return hardware
 }
 
-/** This method returns the Hardware enum depending upon harware string */
+/// This method returns the Hardware enum depending upon harware string
+///
+///
+/// - returns: `Hardware` type of the device
+///
 public func hardware() -> Hardware {
   let hardware = hardwareString()
   
   if (hardware == "iPhone1,1")         { return Hardware.IPHONE_2G }
   if (hardware == "iPhone1,2")         { return Hardware.IPHONE_3G }
   if (hardware == "iPhone2,1")         { return Hardware.IPHONE_3GS }
+  
   if (hardware == "iPhone3,1")         { return Hardware.IPHONE_4 }
   if (hardware == "iPhone3,2")         { return Hardware.IPHONE_4 }
   if (hardware == "iPhone3,3")         { return Hardware.IPHONE_4_CDMA }
   if (hardware == "iPhone4,1")         { return Hardware.IPHONE_4S }
+  
   if (hardware == "iPhone5,1")         { return Hardware.IPHONE_5 }
   if (hardware == "iPhone5,2")         { return Hardware.IPHONE_5_CDMA_GSM }
   if (hardware == "iPhone5,3")         { return Hardware.IPHONE_5C }

    
  case Hardware.SIMULATOR:                         return 100.0
  case Hardware.NOT_AVAILABLE:                     return 200.0
  
  default:                                         return -1.0
  }
}

/**
This method returns the resolution for still image that can be received
from back camera of the current device. Resolution returned for image oriented landscape right.
**/
public func backCameraStillImageResolutionInPixels(hardware: Hardware) -> CGSize {
  switch (hardware) {
  case Hardware.IPHONE_2G, Hardware.IPHONE_3G:

  return CGSizeZero
}

/// Internal method for loggin, you don't need this method
///
/// - parameters:
///     - hardware: `String` hardware type of the device
///
public func logMessage(hardware: String) {
  print("This is a device which is not listed in this category. Please visit https://github.com/InderKumarRathore/UIDeviceUtil and add a comment there.");
  print("Your device hardware string is: %@", hardware);
