Annual report pursuant to Section 13 and 15(d)

Stockholders' Equity (Details Textual)

v3.8.0.1
Stockholders' Equity (Details Textual) - USD ($)
1 Months Ended 12 Months Ended
Apr. 03, 2017
Feb. 27, 2017
Dec. 31, 2017
Dec. 31, 2016
Jun. 23, 2017
Jun. 01, 2017
May 06, 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     $ 2,000,000 $ 4,900,000            
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross       164,976            
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Weighted Average Grant Date Fair Value     $ 2.49 $ 7.73            
Preferred Stock, Shares Authorized     1,000,000 1,000,000            
Preferred Stock, Par or Stated Value Per Share     $ 0.001 $ 0.001            
Common Stock, Shares Authorized     95,000,000 95,000,000     45,714,286      
Proceeds from Issuance of Private Placement   $ 2,800,000                
Stock Issued During Period, Value, New Issues     $ 5,849,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     $ 4.70     $ 55.10  
Derivative Liability     $ 130,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     45,000,000,000 200,000            
Selling, General and Administrative Expenses [Member]                    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                    
Allocated Share-based Compensation Expense     $ 2,000,000 $ 4,700,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,686                  
Class of Warrant or Right, Exercise Price of Warrants or Rights $ 4.40                 $ 21.90
Derivative Liability $ 78,000                  
Plan 2011 [Member]                    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                    
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized     182,857              
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross     30,903              
Plan 2014 [Member]                    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                    
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized     950,000              
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross     92,459              
Share-based Compensation Arrangement by Share-based Payment Award, Number of Additional Shares Authorized     400,000 350,000            
Plan 2014 [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, Options, Vested in Period, Fair Value       $ 1,300,000            
Minimum [Member]                    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                    
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Forfeiture Rate     0.00% 0.00%            
Minimum [Member] | Plan 2014 [Member] | Employee Stock Option [Member]                    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                    
Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price       $ 8.00            
Maximum [Member]                    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                    
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Forfeiture Rate     5.00% 5.00%            
Maximum [Member] | Plan 2014 [Member] | Employee Stock Option [Member]                    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                    
Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price       $ 22.00            
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, Options, Vested and Expected to Vest, Outstanding, Number       22,500            
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, Options, Vested and Expected to Vest, Outstanding, Number       142,400            
Common Stock [Member]                    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                    
Common Stock, Capital Shares Reserved for Future Issuance         100,428          
Stock Issued During Period, Shares, New Issues     1,639,825              
Stock Issued During Period, Value, New Issues     $ 2,000              
Non executive employees [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     258,105              
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Weighted Average Grant Date Fair Value     $ 642,000              
Non executive employees [Member] | Minimum [Member]                    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                    
Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price     2.09              
Non executive employees [Member] | Maximum [Member]                    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                    
Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price     $ 5.70              
Non executive employees [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, Options, Vested and Expected to Vest, Outstanding, Number     45,045              
Non executive employees [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, Options, Vested and Expected to Vest, Outstanding, Number     213,060              
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 1,076,000            
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Grant Date Fair Value     $ 181,936 $ 102,500            
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     $ 700,000              
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition     9 months 18 days              
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross     182,000 103,000            
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Weighted Average Grant Date Fair Value     $ 3.41 $ 10.5            
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 32,500            
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 70,000            
Warrant [Member]                    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                    
Warrants To Purchase Common Stock     210,000 81,628            
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross     159,000 0            
Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price     $ 4.66 $ 0            
Class Of Warrant Or Right Expiration Date Mar. 29, 2022                  
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,231