Quarterly report pursuant to Section 13 or 15(d)

Stockholders' Equity (Details Textual)

v3.8.0.1
Stockholders' Equity (Details Textual) - USD ($)
1 Months Ended 3 Months Ended 9 Months Ended
Apr. 11, 2017
Apr. 03, 2017
Jun. 27, 2017
Feb. 27, 2017
Sep. 30, 2017
Sep. 30, 2016
Sep. 30, 2017
Sep. 30, 2016
Jun. 23, 2017
Jun. 01, 2017
Dec. 31, 2016
Dec. 31, 2015
Nov. 30, 2012
Nov. 08, 2012
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Allocated Share-based Compensation Expense         $ 686,000 $ 1,200,000 $ 1,600,000 $ 4,300,000            
Proceeds from Issuance of Private Placement       $ 2,800,000                    
Class of Warrant or Right, Number of Securities Called by Warrants or Rights                   210,000        
Class of Warrant or Right, Exercise Price of Warrants or Rights         $ 55.138   $ 55.138     $ 4.70     $ 55.10  
Derivative Liability         $ 419,000 64,000 $ 419,000 64,000     $ 20,000 $ 861,000    
Cost of Sales [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Allocated Share-based Compensation Expense         1,000 5,000 25,000 134,000            
Selling, General and Administrative Expenses [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Allocated Share-based Compensation Expense         687,000 $ 1,200,000 $ 1,600,000 $ 4,100,000            
Private Placement [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Stock Issued During Period, Shares, New Issues       554,000                    
Share Price       $ 5.00                    
Payments for Other Fees       $ 196,000                    
Payment for Administrative Fees       $ 40,000                    
Underwritten Public Offering [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Stock Issued During Period, Shares, New Issues   947,325                        
Share Price   $ 4.00                       $ 4.00
Payments for Other Fees   $ 365,000                        
Payment for Administrative Fees   92,000                        
Stock Issued During Period, Value, New Issues   $ 3,800,000                        
Class of Warrant or Right, Number of Securities Called by Warrants or Rights   23,684                        
Class of Warrant or Right, Exercise Price of Warrants or Rights   $ 4.40                       $ 21.90
Class of Warrant or Right, Expiration Date   Mar. 29, 2022                        
Securities Purchase Agreement [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Stock Issued During Period, Shares, New Issues 38,072                          
Securities Purchase Agreement [Member] | Common Stock [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Common Stock, Capital Shares Reserved for Future Issuance                 100,429          
Non Executive Employees [Member] | Underwritten Public Offering [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross     208,050                      
Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price     $ 3.50                      
Share-based Compensation Arrangement by Share-based Payment Award, Options, Granted in Period, Fair Value     $ 519,000                      
Restricted Stock Units (RSUs) [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period             621,000              
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Grant Date Fair Value             $ 181,936              
Restricted Stock [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Total         $ 1,400,000   $ 1,400,000              
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition             9 months 18 days              
Restricted Stock [Member] | Share-based Compensation Award, Tranche One [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period             66,936              
Restricted Stock [Member] | Share-based Compensation Award, Tranche Two [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period             5,000              
Restricted Stock [Member] | Share-based Compensation Award, Tranche Three [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period             50,000              
Restricted Stock [Member] | Deferred Compensation, Share-based Payments [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period             60,000              
Warrant [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Derivative Liability   $ 78,000                        
November 2012 Warrants [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Class of Warrant or Right, Number of Securities Called by Warrants or Rights   36,230