Annual report pursuant to Section 13 and 15(d)

Fair Value Measurements - Schedule of Reconciliation of Derivative Liability Measured on Recurring Basis Using Unobservable Inputs (Level 3) (Details)

v3.7.0.1
Fair Value Measurements - Schedule of Reconciliation of Derivative Liability Measured on Recurring Basis Using Unobservable Inputs (Level 3) (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Change in fair value $ (70) $ 7,605
Derivative Financial Instruments, Liabilities [Member]    
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Beginning balance (598) (13,970)
Issuances of derivatives (14,556)
Modification of terms   (382)
Decrease in liability due to debt conversions   179
Decrease in liability due to warrants being exercised   20,335
Reclassification from liability to equity   2,403
Extinguishment of derivatives liabilities 3,468
Change in fair value 70 1,925
Ending balance (528) (598)
Derivative Financial Instruments, Liabilities [Member] | Common Stock Warrants [Member]    
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Beginning balance (598) (11,358)
Issuances of derivatives (14,556)
Modification of terms   (382)
Decrease in liability due to debt conversions  
Decrease in liability due to warrants being exercised   20,335
Reclassification from liability to equity   2,403
Extinguishment of derivatives liabilities
Change in fair value 70 2,960
Ending balance (528) (598)
Derivative Financial Instruments, Liabilities [Member] | Preferred Stock Warrants [Member]    
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Beginning balance
Issuances of derivatives  
Modification of terms  
Decrease in liability due to debt conversions  
Decrease in liability due to warrants being exercised  
Reclassification from liability to equity  
Extinguishment of derivatives liabilities  
Change in fair value  
Ending balance  
Derivative Financial Instruments, Liabilities [Member] | Converison Feature Of Notes [Member]    
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Beginning balance (2,612)
Issuances of derivatives  
Modification of terms  
Decrease in liability due to debt conversions   179
Decrease in liability due to warrants being exercised  
Extinguishment of derivatives liabilities   3,468
Change in fair value   (1,035)
Ending balance  
Derivative Financial Instruments, Liabilities [Member] | Convertible Notes [Member]    
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Issuances of derivatives  
Extinguishment of derivatives liabilities  
Change in fair value  
Ending balance