Quarterly report pursuant to Section 13 or 15(d)

Debt (Details Textual)

v3.7.0.1
Debt (Details Textual) - USD ($)
3 Months Ended 6 Months Ended 12 Months Ended
Jun. 30, 2017
Jun. 30, 2016
Jun. 30, 2017
Jun. 30, 2016
Jun. 30, 2017
Mar. 31, 2017
Dec. 31, 2016
Sep. 30, 2016
Jun. 01, 2017
Dec. 31, 2015
May 29, 2015
Nov. 30, 2012
Debt Instrument [Line Items]                        
Class of Warrant or Right, Number of Securities Called by Warrants or Rights                 2,100,000      
Common Stock, Par or Stated Value Per Share $ 0.001   $ 0.001   $ 0.001   $ 0.001          
Class of Warrant or Right, Exercise Price of Warrants or Rights $ 5.5138   $ 5.5138   $ 5.5138       $ 0.47     $ 5.51
Derivative Liability $ 454,000 $ 199,000 $ 454,000 $ 199,000 $ 454,000   $ 20,000     $ 861,000    
Amortization of Debt Discount (Premium)     $ 425,000 428,000                
Common Stock Purchased By Warrants Issued     750,000                  
Exit fee payment, Credit Agreement Description     The Company is required to pay an exit fee when the term loan is paid in full equal to the greater of 2% of the outstanding principal balance immediately prior to the final payment or $200,000, which was amended in conjunction with the extinguishment of debt described below from the greater of 1% of the outstanding principal balance immediately prior to the final payment or $100,000.                  
Revenues 5,522,000 4,467,000 $ 10,116,000 8,424,000                
Long-term Debt, Gross 13,752,000   13,752,000   13,752,000   13,752,000          
Fair Value, Inputs, Level 3 [Member]                        
Debt Instrument [Line Items]                        
Derivative Liability 454,000   454,000   454,000   20,000          
Warrant [Member] | Fair Value, Inputs, Level 3 [Member]                        
Debt Instrument [Line Items]                        
Derivative Liability 2,700,000   2,700,000   2,700,000              
Interest Expense [Member]                        
Debt Instrument [Line Items]                        
Amortization of Financing Costs 64,000 72,000 128,000 144,000                
Amortization of Debt Discount (Premium) 157,000 $ 159,000 297,000 $ 284,000                
Senior Secured Debt [Member]                        
Debt Instrument [Line Items]                        
Debt Instrument, Face Amount                     $ 15,500,000  
Debt Issuance Costs1     $ 1,300,000                  
Debt Instrument, Interest Rate Terms     accrues interest at an annual rate equal to the greater of (a) one-month LIBOR or 1% plus (b) 9.75%                  
Debt Instrument, Payment Terms     is interest only until June 30, 2017, followed by monthly amortization payments of $225,000, with the remaining unpaid balance due on the maturity date                  
Debt Instrument, Maturity Date, Description     The Company is required to pay an exit fee when the term loan is paid in full equal to the greater of 2% of the outstanding principal balance immediately prior to the final payment or $200,000                  
Debt Instrument, Interest Rate During Period     10.80%                  
Long-term Debt, Gross $ 13,800,000   $ 13,800,000   13,800,000   13,800,000          
Credit Agreement [Member]                        
Debt Instrument [Line Items]                        
Revenues         $ 30,300,000 $ 27,200,000 $ 24,600,000 $ 22,250,000