Quarterly report pursuant to Section 13 or 15(d)

STOCKHOLDERS' EQUITY - Common Stock Warrants (Details)

v3.7.0.1
STOCKHOLDERS' EQUITY - Common Stock Warrants (Details) - Common Stock Warrants - $ / shares
1 Months Ended 6 Months Ended 12 Months Ended
Apr. 18, 2017
Jan. 10, 2017
Jan. 31, 2017
Jun. 30, 2017
Dec. 31, 2016
Dec. 09, 2016
Mar. 11, 2016
Mar. 10, 2016
Number of Warrants                
Warrants, beginning balance     466,078 466,078        
Granted       4,265,495        
Warrants, ending balance       4,731,573 466,078      
Warrants Exercisable       466,078        
Warrants, Weighted Average Exercise Price                
Weighted Average Exercise Price, Beginning Balance     $ 3.79 $ 3.79        
Weighted Average Exercise Price, Granted       1.22        
Weighted Average Exercise Price, Ending Balance       1.48 $ 3.79      
Weighted average fair value of warrants granted during the period       $ 0.11        
Weighted Average Remaining Life                
Weighted Average Remaining Life       4 years 10 months 17 days 3 years 3 months      
Weighted Average Remaining Life, Granted       5 years 1 month 10 days        
Remaining investor of convertible debt                
Common Stock Warrants                
Number of shares which may be purchased by warrants             23,334  
Exercise price of warrants             $ 2.00 $ 4.125
Securities Purchase Agreement | Private Placement                
Common Stock Warrants                
Number of shares which may be purchased by warrants           1,740,995    
Exercise price of warrants           $ 0.01    
Securities Purchase Agreement | Private Placement | Underwriters                
Common Stock Warrants                
Number of shares which may be purchased by warrants 57,000         174,100    
Exercise price of warrants $ 0.77         $ 1.73    
Share Price $ 0.83              
Volatility rate (as a percent) 38.00%              
Discount rate 1.72%              
Term of warrants 3 years 3 months              
Securities Purchase Agreement | Private Placement | Institutional investors                
Common Stock Warrants                
Number of shares which may be purchased by warrants 2,280,000   1,740,995          
Exercise price of warrants $ 0.83   $ 1.70          
Share Price $ 0.77              
Volatility rate (as a percent) 39.00%              
Discount rate 1.60%              
Term of warrants 2 years 6 months              
Expected term of warrants     3 years 3 months          
Securities Purchase Agreement | Private Placement | Institutional investors | Minimum                
Common Stock Warrants                
Share Price     $ 1.75          
Volatility rate (as a percent)     38.00%          
Discount rate     1.50%          
Securities Purchase Agreement | Private Placement | Institutional investors | Maximum                
Common Stock Warrants                
Share Price     $ 2.13          
Volatility rate (as a percent)     39.00%          
Discount rate     1.56%          
Fortress Purchase Agreement, Amended And Restated | DBD Credit Funding, LLC                
Common Stock Warrants                
Number of shares which may be purchased by warrants   187,500            
Exercise price of warrants   $ 1.70            
Share Price   $ 1.90            
Volatility rate (as a percent)   39.00%            
Discount rate   1.52%            
Term of warrants   5 years            
Expected term of warrants   3 years