XML 56 R42.htm IDEA: XBRL DOCUMENT v3.8.0.1
Term Loan (Details) - USD ($)
2 Months Ended 12 Months Ended
Jul. 31, 2017
Jul. 28, 2017
Feb. 08, 2016
Feb. 05, 2016
Sep. 30, 2017
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Dec. 16, 2016
Dec. 15, 2016
Feb. 29, 2016
Debt Instrument [Line Items]                      
Amount received under initial loan agreement           $ 0 $ 24,012,078 $ 0      
Warrants exercise price (in dollars per share)           $ 30     $ 3.06 $ 4.20  
Debt instrument, repayment of principal and unpaid interest           $ 15,013,638 0 0      
Warrants repriced in connection with debt modification           76,549 0 $ 0      
Term Loan, Net - Current           10,599,795 5,481,656        
Long Term Loan, Net           $ 0 18,484,510        
Warrants [Member]                      
Debt Instrument [Line Items]                      
Number of warrants issued (in shares)                     83,334
Warrants exercise price (in dollars per share)                     $ 10.44
Hercules Capital, Inc. and Hercules Technology III, L.P. [Member]                      
Debt Instrument [Line Items]                      
Amount received under initial loan agreement     $ 25,000,000                
Debt instrument, interest rate       10.50%              
Debt instrument, maturity date           Feb. 01, 2020          
Debt instrument, minimum cash balance required to be maintained       $ 10,000,000              
Debt instrument, repayment of principal and unpaid interest   $ 5,000,000     $ 5,000,000            
Prepayment charge   $ 100,000                  
Second prepayment charge           $ 100,000          
Maturity date of amended loan servicing agreement           Aug. 01, 2018          
Percentage of stock issuable upon exercise of the warrants 80.00% 80.00%                  
Number of days to calculate volume-weighted average price of common stock           30 days          
Warrants repriced in connection with debt modification           $ 77,000          
Additional loan discount           200,000          
Term Loan Principal - Current           9,986,362 6,214,057        
End Fee Payable           1,771,250 0        
Issuance Cost/Loan Discount - Current           (1,157,817) (732,401)        
Term Loan, Net - Current           10,599,795 5,481,656        
Long Term Loan Principal           0 18,785,943        
End Fee Payable           0 1,771,250        
Long Term Loan Discount/Issuance Cost           0 (2,072,683)        
Long Term Loan, Net           0 18,484,510        
Hercules Capital, Inc. and Hercules Technology III, L.P. [Member] | Warrants [Member]                      
Debt Instrument [Line Items]                      
Number of warrants issued (in shares)       105,691              
Warrants exercise price (in dollars per share) $ 4.62 $ 4.62   $ 12.30              
Fair value of warrants classified as equity warrants           $ 633,749 $ 633,749        
Hercules Capital, Inc. and Hercules Technology III, L.P. [Member] | Prime Rate [Member]                      
Debt Instrument [Line Items]                      
Debt instrument, basis spread on variable rate       6.00%