XML 45 R33.htm IDEA: XBRL DOCUMENT v3.7.0.1
Notes Payable (Narrative) (Details) - USD ($)
1 Months Ended 6 Months Ended
Jun. 23, 2017
Feb. 28, 2013
Jun. 30, 2017
Dec. 31, 2016
Mar. 31, 2016
Dec. 31, 2015
Debt Instrument [Line Items]            
Principal amount of notes   $ 20,500,000        
Number of shares of common stock called by issuance of warrants   5,500,000   4,200,000 3,818,000  
Aggregate exercise price of common stock called by issuance of warrants   $ 2.63        
Warrants outstanding   5,500,000 0 0    
Repayment of notes payable     $ 4,500,000      
Future cash flows weighted average market yield     9.20% 10.60%   10.60%
Fair value of the financing derivative     $ 15,000 $ 356,000   $ 400,000
Fair value of the warrants   $ 6,400,000        
Notes payable, current     2,643,000      
Notes [Member]            
Debt Instrument [Line Items]            
Repayment of notes payable $ 4,500,000          
Fair value of the notes   $ 14,100,000        
Aggregate principal amount     16,000,000 20,500,000    
Debt discount that has yet to be amortized     $ 2,900,000 $ 4,300,000    
Maturity date     Feb. 01, 2020      
Deerfield promissory notes [Member]            
Debt Instrument [Line Items]            
Debt instrument, stated interest rate   8.75%        
Facility agreement period   7 years        
Percentage of net proceeds from out side financing or equity component   25.00%        
Cash and cash equivalent minimum amount quarterly required   $ 2,000,000        
Percentage of principal amount repaid   100.00%        
Proceeds from issuance of debt   $ 20,500,000        
Carrying value of the notes   12,800,000        
Original issue discount   $ 7,700,000        
Notes payable, current     $ 2,600,000