Annual report pursuant to Section 13 and 15(d)

Debt (Details Narrative)

v3.8.0.1
Debt (Details Narrative) - USD ($)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
Apr. 27, 2016
Apr. 18, 2016
Apr. 04, 2016
Dec. 31, 2015
Nov. 18, 2015
Sep. 08, 2015
Apr. 02, 2015
Jun. 30, 2014
Sep. 30, 2015
Dec. 31, 2016
Dec. 31, 2015
Jul. 31, 2016
May 06, 2016
Debt principal amount       $ 17,814           $ 7,421 $ 17,814    
Gain on extinguishment of debt                   (661) $ 2,171    
Fair value of warrants                        
Number of shares issued       907,187           2,280,407 907,187    
Debt beneficial conversion feature                   $ 1,138      
Derivative liability       $ 598           $ 528 $ 598    
September 2015 Offering [Member]                          
Fair value of warrants                 $ 9,500   $ 9,500    
September 2015 Offering [Member] | Series C Warrants [Member]                          
Warrant exercise price per share       $ 18.00             $ 18.00    
Exchange Agreement [Member]                          
Debt maturity date                   Apr. 03, 2018      
Percentage of loan bear interest rate                   6.00%      
Debt principal balance                   $ 300      
Debt instrument conversion price                   $ 16.08      
Hercules Term Loan [Member]                          
Debt principal amount       $ 17,051           $ 7,421 $ 17,051    
Term loan, payment terms                   Principal payments commenced August 1, 2015 and are currently being made in equal monthly 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%      
Hercules Term Loan [Member] | Closing Date [Member]                          
Term loan fee amount                   $ 200      
Final payment fee for debt                   $ 1,700      
Percentage of loan bear interest rate                   12.70%      
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] | Series B Warrants [Member]                          
Debt principal amount         $ 1,100                
Payment of debt         $ 1,300                
Magna Note [Member] | Series C Warrants [Member]                          
Debt principal amount       311             311    
Payment of debt       368                  
Magna Note [Member] | Initial Convertible Note [Member]                          
Debt principal amount       202             202    
Gain on extinguishment of debt                     $ 79    
Debt instrument converted shares                     2,072    
Magna Note [Member] | Amendment and Exchange Agreement [Member]                          
Warrant to purchase shares of common stock             3,161            
Warrant exercise price per share             $ 837            
Magna Note [Member] | Amendment and Exchange Agreement [Member] | Senior Convertible Debt One [Member]                          
Debt maturity date             Jun. 30, 2016            
Magna Note [Member] | Amendment and Exchange Agreement [Member] | Senior Convertible Debt Two [Member]                          
Debt maturity date             Aug. 31, 2016            
Magna Note [Member] | Settlement and Waiver Agreement [Member] | September 2015 Offering [Member]                          
Debt principal amount           $ 1,400              
Payment of debt           2,500              
Debt instrument, periodic payment, principal           797              
Magna Note [Member] | Settlement Agreement [Member]                          
Gain on extinguishment of debt                     $ 2,200    
Debt conversion original debt amount                     3,500    
Magna Note [Member] | Securities Purchase Agreement [Member]                          
Debt principal amount       763           $ 763 763 $ 888  
Debt maturity date                   Aug. 11, 2016      
Percentage of loan bear interest rate                   6.00%      
Magna August Note [Member]                          
Debt principal amount       $ 763             $ 763    
Riverside Debt [Member]                          
Number of shares issued                         11,667
Derivative liability                         $ 199
First, Second and Third Exchange Note [Member] | Exchange Agreement [Member]                          
Debt principal balance                       $ 840  
Debt instrument converted shares                   145,227      
First Amendment to Loan and Security Agreement [Member] | Hercules Term Loan [Member]                          
Debt principal amount           1,000       $ 3,500      
Debt principal balance           $ 2,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 December 31 2016, was $3.0 million.              
First Amendment to Loan and Security Agreement [Member] | Hercules Term Loan [Member] | Minimum [Member]                          
Debt principal amount           $ 500              
Term loan fee amount           $ 1,500              
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     8,333                    
Number of shares issued     12,500                    
Number of shares reduced     11,667                    
Exchange Agreement [Member] | Hercules Term Loan [Member]                          
Financing costs $ 267                        
Debt conversion original debt amount 244                        
Exchange Agreement [Member] | Riverside Debt [Member]                          
Debt principal amount     $ 1,000                    
Debt additional principal     $ 1,000                    
Debt instrument conversion price     $ 17.16                    
Common stock closing price per share     $ 19.56                    
Debt instrument premium amount     $ 245                    
Fair value of warrants     $ 106                    
Exchange Agreement [Member] | Riverside Debt [Member] | Warrant [Member]                          
Warrant to purchase shares of common stock     8,333                    
Warrant exercise price per share     $ 19.56                    
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 8,333                        
Warrant exercise price per share $ 19.92                        
Common stock closing price per share $ 19.92 $ 24.24                      
Debt instrument premium amount $ 268                        
Fair value of warrants   $ 107                      
Debt beneficial conversion feature   $ 413                      
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