Annual report pursuant to Section 13 and 15(d)

Notes Payable (Details)

v3.7.0.1
Notes Payable (Details)
1 Months Ended 12 Months Ended
Nov. 30, 2015
USD ($)
Jun. 30, 2013
USD ($)
$ / shares
shares
Sep. 30, 2012
USD ($)
tranche
Dec. 31, 2016
USD ($)
shares
Dec. 31, 2015
USD ($)
Jun. 30, 2016
USD ($)
Dec. 06, 2015
USD ($)
$ / shares
shares
Aug. 31, 2015
USD ($)
Debt Instrument [Line Items]                
Exercise price of warrant (in dollars per share) | $ / shares             $ 29.32  
Issuance of warrant to purchase shares of common stock | shares       460     125,000  
Warrants initial fair value             $ 2,507,000  
Gain on extinguishment of debt       $ 61,000      
Notes payable to vendors       1,273,000      
Commitment fee       150,000        
December Term Loan [Member]                
Debt Instrument [Line Items]                
Accrued interest       23,000        
Line of credit facility on Original amount       3,315,000        
Original Discount Amount       265,000        
Commitment fee       $ 153,000        
Term loan interest rate       9.00%        
Rate to be paid in the event of default       14.00%        
Original principal amount of the loan reduced by the Upfront Fee       $ 2,993,000        
Line of Credit interest       8,000        
Loan Cost accretion       15,000        
Balance of Loan as per Balance sheet       $ 3,016,000        
Loan And Security Agreement [Member]                
Debt Instrument [Line Items]                
Maximum amount of borrowing under the agreement     $ 15,000,000          
Amount of remaining borrowing capacity     $ 5,000,000          
Number of loan tranches | tranche     3          
Straight-line principal payments period     36 months          
Percentage of exit fee of drawn amount     3.00%          
Prepayment fee (as a percent) 1.00%              
Interest expense related to borrowings         $ 842,000      
Effective interest rate (as a percent)         10.00%      
Restricted cash for loan repayment               $ 8,300,000
Repayments of debt $ 6,600,000              
Gain on extinguishment of debt $ 61,000              
Loan And Security Agreement [Member] | Minimum [Member]                
Debt Instrument [Line Items]                
Prepayment fee (as a percent)       1.00%        
Loan And Security Agreement [Member] | Maximum [Member]                
Debt Instrument [Line Items]                
Prepayment fee (as a percent)       2.00%        
Loan And Security Agreement [Member] | London Interbank Offered Rate L I B O R [Member]                
Debt Instrument [Line Items]                
Variable rate basis       one month LIBOR        
Spread on variable rate (as a percent)     6.00%          
LIBOR floor rate     3.00%          
Loan And Security Agreement [Member] | First Tranche [Member]                
Debt Instrument [Line Items]                
Maximum amount of borrowing under the agreement     $ 5,000,000          
Loan And Security Agreement [Member] | Second Tranche [Member]                
Debt Instrument [Line Items]                
Maximum amount of borrowing under the agreement     5,000,000          
Loan And Security Agreement [Member] | Third Tranche [Member]                
Debt Instrument [Line Items]                
Maximum amount of borrowing under the agreement     $ 5,000,000          
Tranche draw down   $ 5,000,000            
Loan And Security Agreement [Member] | Third Tranche [Member] | Warrant [Member]                
Debt Instrument [Line Items]                
Exercise price of warrant (in dollars per share) | $ / shares   $ 96.88            
Issuance of warrant to purchase shares of common stock | shares   6,193            
Warrants initial fair value   $ 130,000            
Notes Payable To Vendors [Member]                
Debt Instrument [Line Items]                
Notes payable to vendors           $ 1,212,000    
Interest rate           10.00%    
Accrued interest       $ 61,000