Quarterly report pursuant to Section 13 or 15(d)

Stockholders' Equity (Details Textual)

v3.7.0.1
Stockholders' Equity (Details Textual) - USD ($)
1 Months Ended 3 Months Ended 6 Months Ended
Apr. 11, 2017
Apr. 03, 2017
Jun. 27, 2017
Feb. 27, 2017
Jun. 30, 2017
Jun. 30, 2016
Jun. 30, 2017
Jun. 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         $ 427,000 $ 1,400,000 $ 918,000 $ 3,100,000            
Proceeds from Issuance of Private Placement       $ 2,800,000                    
Class of Warrant or Right, Number of Securities Called by Warrants or Rights                   2,100,000        
Class of Warrant or Right, Exercise Price of Warrants or Rights         $ 5.5138   $ 5.5138     $ 0.47     $ 5.51  
Derivative Liability         $ 454,000 199,000 $ 454,000 199,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         15,000 47,000 26,000 129,000,000,000            
Selling, General and Administrative Expenses [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Allocated Share-based Compensation Expense         412,000 $ 1,300,000 $ 892,000 $ 3,000,000            
Private Placement [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Stock Issued During Period, Shares, New Issues       5,540,000                    
Share Price       $ 0.50                    
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   9,473,250                        
Share Price   $ 0.40                       $ 0.40
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   236,831                        
Class of Warrant or Right, Exercise Price of Warrants or Rights   $ 0.44                       $ 2.19
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 380,717                          
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                 1,004,283          
Non Executive Employees [Member] | Employee Stock Option [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period     2 years                      
Share-based Compensation Arrangement by Share-based Payment Award, Expiration Period     10 years                      
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     2,080,500                      
Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price     $ 0.35                      
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             $ 1,819,358              
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         $ 2,200,000   $ 2,200,000              
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition             10 months 24 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             669,358              
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             50,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             500,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             600,000              
Warrant [Member]                            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                            
Derivative Liability   $ 78,000