Quarterly report pursuant to Section 13 or 15(d)

Fair Value Measurement (Details Textual)

v3.7.0.1
Fair Value Measurement (Details Textual) - USD ($)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended 6 Months Ended
Jan. 26, 2017
Jun. 30, 2017
Jun. 30, 2016
Jun. 30, 2017
Jun. 30, 2016
Jun. 01, 2017
Dec. 31, 2016
Dec. 31, 2015
Nov. 30, 2012
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                  
Derivative Liability   $ 454 $ 199 $ 454 $ 199   $ 20 $ 861  
Class of Warrant or Right, Exercise Price of Warrants or Rights   $ 5.5138   $ 5.5138   $ 0.47     $ 5.51
Fair Value Adjustment of Warrants   $ (251) 75 $ (369) (662)        
Restructuring Costs   33 $ 0 $ 803 $ 0        
Class of Warrant or Right, Outstanding                 66,287
Class of Warrant or Right, Number of Securities Called by Warrants or Rights           2,100,000      
Common Stock [Member]                  
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                  
Warrants To Purchase Common Stock       2,462,293          
Maximum [Member] | Private Placement 2017 [Member]                  
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                  
Class of Warrant or Right, Exercise Price of Warrants or Rights                 $ 0.40
Class of Warrant or Right, Outstanding                 362,293
Minimum [Member] | Private Placement 2017 [Member]                  
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                  
Class of Warrant or Right, Exercise Price of Warrants or Rights                 $ 0.50
Class of Warrant or Right, Outstanding                 290,338
Fair Value, Inputs, Level 3 [Member]                  
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                  
Derivative Liability   $ 454   $ 454     $ 20    
Fair Value, Inputs, Level 3 [Member] | Warrant Liability [Member]                  
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                  
Fair Value Assumptions, Expected Dividend Rate 0.00%     0.00%          
Fair Value, Inputs, Level 3 [Member] | Maximum [Member] | Warrant Liability [Member]                  
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                  
Fair Value Assumptions, Expected Volatility Rate 78.98%     89.28%          
Fair Value Assumptions, Risk Free Interest Rate 1.95%     1.89%          
Fair Value Assumptions, Expected Term 5 years     4 years 6 months 29 days          
Fair Value, Inputs, Level 3 [Member] | Minimum [Member] | Warrant Liability [Member]                  
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                  
Fair Value Assumptions, Expected Volatility Rate 65.33%     75.79%          
Fair Value Assumptions, Risk Free Interest Rate 1.49%     1.03%          
Fair Value Assumptions, Expected Term 3 years 4 months 2 days     4 months 10 days