Quarterly report pursuant to Section 13 or 15(d)

Debt (Details Narrative)

v3.5.0.2
Debt (Details Narrative) - USD ($)
$ / shares in Units, $ in Thousands
6 Months Ended
Apr. 28, 2016
Apr. 18, 2016
Apr. 04, 2016
Sep. 08, 2015
Jun. 30, 2014
Jun. 30, 2016
May 06, 2016
Apr. 02, 2016
Dec. 31, 2015
Aug. 31, 2014
Debt principal amount           $ 12,091     $ 17,814  
Number of shares issued           13,306,001     10,886,248  
Exchange Agreement [Member]                    
Percentage of loan bear interest rate           6.00%        
Debt principal balance           $ 300        
Debt instrument conversion price           $ 1.34        
Hercules Term Loan [Member]                    
Debt principal amount           $ 10,628     $ 17,051  
Term loan fee amount         $ 200          
Final payment fee for debt         $ 1,700          
Percentage of loan bear interest rate           12.70%        
Term loan, payment terms           Principal payments commenced August 1, 2015 and are currently being made in equal installments of approximately $500,000, with the remainder due at maturity.        
Debt instrument, periodic payment, principal           $ 500        
Hercules Term Loan [Member] | Prime Rate [Member]                    
Percentage of loan bear interest rate         9.20% 12.50%        
Riverside Merchant Partners, LLC [Member]                    
Debt principal amount           $ 3,000        
Subordinated convertible promissory notes           3,000        
Riverside Merchant Partners, LLC [Member] | Hercules and Riverside Debt Assignment [Member]                    
Debt principal amount   $ 1,000 $ 1,000              
Debt additional principal   1,000 2,000              
Magna Note [Member]                    
Debt principal amount           763     $ 763  
Magna Note [Member] | Securities Purchase Agreement [Member]                    
Debt principal amount           $ 763       $ 3,500
Debt maturity date           Aug. 11, 2016        
Percentage of loan bear interest rate           6.00%        
Riverside Debt [Member]                    
Derivative Liability             $ 199      
Number of shares issued             140,000      
First Amendment to Loan and Security Agreement [Member] | Hercules Term Loan [Member]                    
Debt principal amount       $ 1,000   $ 4,500        
Debt instrument, covenant description       The Amendment modified the liquidity covenant to reduce the minimum cash balance required by $500,000 for every $1.0 million paid in principal to a minimum of $2.5 million. The minimum cash and cash equivalents balance required to maintain compliance with the minimum liquidity covenant at June 30, 2016 was $4.5 million.            
Debt principal balance       $ 2,500            
First Amendment to Loan and Security Agreement [Member] | Hercules Term Loan [Member] | Minimum [Member]                    
Debt principal amount       $ 500            
Exchange Agreement [Member] | First, Second and Third Exchange Agreement [Member]                    
Debt principal balance           $ 700        
Exchange Agreement [Member] | Hercules and Riverside Debt Assignment [Member]                    
Debt principal amount     2,000              
Debt additional principal     $ 2,000              
Warrant to purchase shares of common stock     100,000              
Number of shares issued     150,000              
Number of shares reduced     140,000              
Exchange Agreement [Member] | Hercules Term Loan [Member]                    
Financing costs $ 267                  
Debt conversion original debt amount 244                  
Exchange Agreement [Member] | First, Second and Third Exchange Agreement [Member]                    
Debt instrument converted shares           1,742,718        
Exchange Agreement [Member] | Riverside Debt [Member]                    
Debt principal amount     $ 1,000         $ 1,000    
Debt additional principal     $ 1,000              
Debt instrument conversion price     $ 1.43              
Common stock closing preice per share     $ 1.63              
Debt Instrument premium amount     $ 246              
Fair Value of Warrants     $ 106              
Exchange Agreement [Member] | Riverside Debt [Member] | Warrant [Member]                    
Warrant to purchase shares of common stock     100,000              
Warrant exercise price per share     $ 1.63              
Exchange Agreement [Member] | Riverside Debt [Member] | Hercules Term Loan [Member]                    
Debt principal amount 1,000 1,000                
Debt additional principal $ 1,000 $ 1,000                
Warrant to purchase shares of common stock 100,000                  
Warrant exercise price per share $ 1.66                  
Common stock closing preice per share $ 1.66 $ 2.02                
Debt Instrument premium amount $ 268                  
Debt beneficial conversion feature   $ 413                
Fair Value of Warrants   $ 107                
Hercules Technology Capital, Inc. [Member] | Loan and Security Agreement [Member]                    
Debt principal amount         $ 20,000          
Debt maturity date         Jan. 01, 2018          
Hercules Term Loan [Member] | Riverside Merchant Partners, LLC [Member]                    
Debt principal amount           $ 3,000