Annual report pursuant to Section 13 and 15(d)

Long Term Debt (Detail Textuals)

v3.8.0.1
Long Term Debt (Detail Textuals)
1 Months Ended 12 Months Ended
Aug. 11, 2016
USD ($)
Jun. 05, 2015
USD ($)
Jun. 02, 2015
USD ($)
Installment
Feb. 17, 2017
USD ($)
Oct. 24, 2016
USD ($)
Aug. 16, 2016
USD ($)
Jun. 27, 2016
USD ($)
$ / shares
Dec. 17, 2014
USD ($)
Installment
Dec. 31, 2017
USD ($)
Dec. 31, 2016
USD ($)
Oct. 16, 2013
$ / shares
Debt Instrument [Line Items]                      
Long-term debt                 $ 14,063,000 $ 17,156,000  
Exercise price of warrants (in dollars per share) | $ / shares                     $ 5.00
Unamortized discount                 654,000 835,000  
Repayment of equipment financing agreement                 334,000 226,000  
Interest expense                 1,000,000 800,000  
Interest costs capitalized                 200,000 500,000  
Letters of credit outstanding                 1,400,000    
2235570 Ontario Limited                      
Debt Instrument [Line Items]                      
Exercise price of warrants (in dollars per share) | $ / shares             $ 2.61        
Fair value of warrant             $ 100,000        
Line of Credit                      
Debt Instrument [Line Items]                      
Line of credit facility, revolving credit conversion to term loan               $ 6,395,071      
AMEX Agreement                      
Debt Instrument [Line Items]                      
Long-term debt                 62,000 0  
Medium-term Notes | First Term Loan Agreement                      
Debt Instrument [Line Items]                      
Face value of debt               $ 7,500,000      
Number of periodic payments (in installments) | Installment               60      
Periodic principal payments               $ 124,583      
Debt interest rate               5.00%      
Long-term debt                 3,000,000    
Medium-term Notes | Second Term Loan Agreement                      
Debt Instrument [Line Items]                      
Face value of debt     $ 6,000,000                
Number of periodic payments (in installments) | Installment     54                
Periodic principal payments     $ 111,111                
Debt interest rate     5.00%                
Long-term debt                 3,700,000    
Construction Loans | Equipment Financing Agreements                      
Debt Instrument [Line Items]                      
Long-term debt                 1,094,000 1,421,000  
Construction Loans | First Sterling Agreement | Sterling National Bank                      
Debt Instrument [Line Items]                      
Face value of debt   $ 1,000,000                  
Periodic principal payments   $ 19,686                  
Debt interest rate   5.00%                  
Amount outstanding                 600,000    
Construction Loans | Second Sterling Agreement | Sterling National Bank                      
Debt Instrument [Line Items]                      
Face value of debt           $ 700,000          
Periodic principal payments           $ 13,769          
Debt interest rate           5.00%          
Amount outstanding                 500,000    
Unsecured Debt | Promissory notes                      
Debt Instrument [Line Items]                      
Long-term debt                 6,250,000 $ 6,250,000  
Unsecured Debt | Promissory notes | 2235570 Ontario Limited                      
Debt Instrument [Line Items]                      
Face value of debt             $ 1,000,000        
Debt interest rate             10.00%        
Amount outstanding             $ 100,000   1,000,000    
Unamortized discount                 87,500    
Unsecured Debt | Anson August Note | Anson Investments Master Fund LP                      
Debt Instrument [Line Items]                      
Face value of debt $ 3,000,000                    
Debt interest rate 10.00%                    
Amount outstanding                 3,000,000    
Fair value of warrant $ 400,000                    
Unamortized discount                 300,000    
Unsecured Debt | Anson October Note | Anson Investments Master Fund LP                      
Debt Instrument [Line Items]                      
Face value of debt         $ 2,250,000            
Debt interest rate         10.00%            
Amount outstanding                 2,250,000    
Fair value of warrant         $ 400,000            
Unamortized discount                 300,000    
American Express Bank, FSB | AMEX Agreement                      
Debt Instrument [Line Items]                      
Face value of debt       $ 1,000,000              
Amount outstanding                 $ 62,000    
Loan fee       3.50%              
Repayment rate       6.00%              
Debt instrument, term       365 days