STOCKHOLDERS' EQUITY (Details Textual) - USD ($) | Aug. 03, 2016 | Jun. 23, 2016 | Jun. 15, 2016 | Aug. 31, 2014 | May 30, 2014 | Dec. 31, 2016 | Dec. 31, 2015 | Dec. 31, 2014 | Jun. 30, 2016 |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Dividends, Preferred Stock | | | | | | $ (1,034,000) | | | |
Debt Inducement Of Conversion Of Convertible Debentures | | | | | | $ 8,307,000 | $ 0 | | |
December 2015 and March 2016 Warrants [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | $ 0.10 | | | |
Class of Warrant or Right, Warrants Exercised | | | | | | 80,000 | | | |
Note Conversion Agreement [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Debt Inducement Of Conversion Of Convertible Debentures | | | | | | $ 1,720,000 | | | |
Brushy Resources, Inc [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Purchase Of Common Stock Shares By Warrants Issued | | | | | | 200,000 | | | |
Series A Preferred Stock [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Stock Issued During Period, Shares, New Issues | | 1,500,000 | | | | | 0 | | |
Share Price | | $ 5 | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | $ 28.90 | | | | |
Fair Value Adjustment of Warrants | | | | | $ 1,350,000 | | | | |
Aggregate Value Of Warrants Issued | | | | | $ 7,500,000 | | | | |
Purchase Of Common Stock Warrant | | | | | 155,602 | | | | |
Preferred Stock, Par or Stated Value Per Share | | | | | $ 0.0001 | $ 0.0001 | $ 0.0001 | | |
Preferred Stock Value Stated Rate | | | | | 1,000 | 1,000 | 1,000 | | |
Debt Instrument, Convertible, Conversion Price | | | | | $ 24.10 | | | | |
Preferred Stock, Shares Issued | | | | | 7,500 | 0 | 7,500 | | |
Deemed Value Of Beneficial Conversion Feature | | | | | $ 2,210,000 | | | | |
Deemed Dividend | | | | | 3,560,000 | | | | |
Dividends, Preferred Stock | | | | | | $ 0 | $ 0 | | |
Preferred Stock, Shares Authorized | | | | | | 10,000 | 10,000 | | |
Debt Instrument, Convertible, Beneficial Conversion Feature | | | | | $ 2,210,000 | | | | |
Preferred Stock, Value, Issued | | | | | | $ 0 | $ 6,794,000 | | |
Gain Loss On Conversion Of Convertible Preferred stock | | $ 500,000 | | | | | | | |
Dividends Payable | | $ 900,000 | | | | | | | |
Debt Instrument, Interest Rate, Effective Percentage | | | | | 8.00% | | | | |
Cumulative Dividends | | | | | | | 600,000 | | |
Series A Preferred Stock [Member] | Maximum [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | $ 24.10 | | | | | | | |
Series A Preferred Stock [Member] | Minimum [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | $ 5 | | | | | | | |
Redeemable Preferred Stock [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Preferred Stock, Shares Issued | | | | 2,000 | | | | | |
Gross Proceeds From Preferred Stock | | | | | | 1,900,000 | 1,200,000 | $ 50,000,000 | |
Dividends, Preferred Stock | | | | | | $ 240,000 | $ 120,000 | | |
Preferred Stock, Shares Authorized | | | | 2,000 | | | | | |
Preferred Stock, Dividend Rate, Percentage | | | | 6.00% | | | | | |
Series B Preferred Stock [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Stock Issued During Period, Shares, New Issues | | | | | | | 0 | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | $ 2.50 | | | |
Shares Issued, Price Per Share | | | | | | $ 1.30 | | | |
Proceeds from Issuance of Private Placement | | | $ 20,000,000 | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Risk Free Interest Rate | | | | | | 0.78% | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term | | | | | | 2 years | | | |
Preferred Stock, Par or Stated Value Per Share | | | | | | $ 0.0001 | $ 0.0001 | | |
Preferred Stock Value Stated Rate | | | | | | 1,000 | 1,000 | | |
Preferred Stock, Shares Issued | | | | | | 17,000 | 0 | | |
Dividends, Preferred Stock | | | | | | $ 0 | $ 0 | | |
Preferred Stock, Shares Authorized | | | | | | 20,000 | 20,000 | | |
Preferred Stock, Dividend Rate, Percentage | | | 6.00% | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Volatility Rate | | | | | | 238.00% | | | |
Purchase Of Common Stock Shares By Warrants Issued | | | | | | 13,160,000 | | | |
Convertible Preferred Stock Conversion Price | | | | | | $ 1.10 | | | |
Preferred Stock, Value, Issued | | | | | | $ 13,432,000 | $ 0 | | |
Preferred Stock, Value, Outstanding | | | | | | 13,400,000 | | | |
Conversion Of Cumulative Dividend Payable Into Common Stock | | | | | | $ 600,000 | | | |
Conversion of Stock, Shares Converted | | | | | | 3,000 | | | |
Cumulative Dividends | | | | | | $ 600,000 | | | |
2013 and 2014 Warrants [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | $ 0.10 | | | |
Stock Issued During the Period, Exercise of Warrants | | | | | | 300,706 | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights | | | | | | 416,454 | | | |
Class of Warrant or Right, Warrants Exercised | | | | | | 315,990 | | | |
2013 and 2014 Warrants [Member] | Maximum [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | $ 42.50 | | | |
2013 and 2014 Warrants [Member] | Minimum [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | 25 | | | |
May 2014 Private Placement [Member] | Maximum [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | 2.50 | | | |
May 2014 Private Placement [Member] | Minimum [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | $ 0.10 | | | |
December 2015 and March 2016 Warrant [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Purchase Of Common Stock Warrant | | | | | | 620,000 | | | |
Warrant [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Stock Issued During Period, Shares, New Issues | 1,650,000 | | | | | | | | |
Share Price | $ 1.12 | | | | | $ 3.10 | $ 0.21 | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | $ 2.50 | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Risk Free Interest Rate | 0.76% | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term | 3 years | | | | | 1 year 7 months 20 days | 2 years 1 month 17 days | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Volatility Rate | 203.00% | | | | | | | | |
Debt Instrument, Convertible, Beneficial Conversion Feature | | | | | $ 1,600,000 | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Intrinsic Value | | | | | | $ 18,300,000 | | | |
Warrant [Member] | Series A Preferred Stock [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | $ 28.90 | | | | |
Shares Issued, Price Per Share | | | | | $ 24.80 | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Risk Free Interest Rate | | | | | 0.20% | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term | | | | | 3 years | | | | |
Deemed Value Of Beneficial Conversion Feature | | | | | $ 6.80 | | | | |
Gross Proceeds From Preferred Stock | | | | | $ 6,790,000 | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Volatility Rate | | | | | 70.00% | | | | |
Debt Instrument, Convertible, Beneficial Conversion Feature | | | | | $ 8.40 | | | | |
Common Stock [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Stock Issued During Period, Shares, New Issues | | | | | | | 87,002 | | |
Dividends, Preferred Stock | | | | | | $ 0 | | | |
Stock Issued During Period, Shares, Conversion of Convertible Securities | | | | | | 6,778,115 | | | |
Common Stock [Member] | Series B Preferred Stock [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Stock Issued During Period, Shares, Conversion of Convertible Securities | | | | | | 2,700,000 | | | |
Private Placement [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | $ 2.50 | | | | | | |
Purchase Of Common Stock Shares By Warrants Issued | | | 9,090,926 | | | | | | |
Private Placement [Member] | Series B Preferred Stock [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Stock Issued During Period, Shares, New Issues | | | 20,000 | | | | | | |
Share Price | | | $ 1.20 | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | $ 2.50 | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Risk Free Interest Rate | | | 0.78% | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term | | | 2 years | | | | | | |
Preferred Stock, Dividend Rate, Percentage | | | 6.00% | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Volatility Rate | | | 238.00% | | | | | | |
Convertible Preferred Stock Conversion Price | | | $ 1.10 | | | | | | |
Convertible Preferred Stock Beneficial Conversion Feature | | | | | | $ 7,900,000 | | | |
Proceeds from Issuance of Preferred Stock, Preference Stock, and Warrants | | | | | | $ 15,200,000 | | | |
Series B Purchase Agreement [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights | | | | | | 2,850,000 | | | |
Series B Purchase Agreement [Member] | Credit and Guarantee Agreement [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights | | | | | | 3,500,000 | | | 672,000 |
Series B Purchase Agreement [Member] | Maximum [Member] | Credit and Guarantee Agreement [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | $ 2.50 | | | |
Series B Purchase Agreement [Member] | Minimum [Member] | Credit and Guarantee Agreement [Member] | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | |
Class of Warrant or Right, Exercise Price of Warrants or Rights | | | | | | $ 0.01 | | | |