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
Jul. 28, 2017
May 06, 2016
Apr. 27, 2016
Apr. 18, 2016
Apr. 04, 2016
Sep. 08, 2015
Jun. 30, 2014
Jul. 31, 2016
Dec. 31, 2017
Dec. 31, 2016
Jan. 31, 2017
Debt principal amount                 $ 3,105 $ 7,421  
Warrant exercise price per share                     $ 6.60
Debt beneficial conversion feature                   1,138  
Number of shares issued                 3,028,065    
Payment of debt                 $ 6,816 6,630  
Exchange Agreement [Member]                      
Percentage of loan bear interest rate                 6.00%    
Debt maturity date                 Apr. 03, 2018    
Debt principal balance                 $ 300    
Debt instrument conversion price                 $ 16.08    
Hercules Term Loan [Member]                      
Debt principal amount                 $ 605 $ 7,421  
Percentage of loan bear interest rate             10.95%   12.45%    
Term loan, payment terms                 Principal payments commenced August 1, 2015 and are currently being made in equal monthly installments totaling approximately $0.5 million, 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             7.70%   9.20%    
Hercules Term Loan [Member] | Closing Date [Member]                      
Percentage of loan bear interest rate                 11.95%    
Term loan fee amount                 $ 200    
Final payment fee for debt                 1,700    
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            
Debt additional principal     $ 1,000 $ 1,000 2,000            
Riverside Debt [Member]                      
Number of shares issued   11,667                  
Value of true up shares to interest expense and equity   $ 200                  
First, Second and Third Exchange Note [Member] | Exchange Agreement [Member]                      
Debt instrument converted shares                 145,227    
Magna Note [Member] | Exchange Agreement [Member]                      
Percentage of loan bear interest rate               6.00%      
Debt maturity date               Aug. 11, 2016      
Payment of debt               $ 800      
Principal balance and interest               900      
Extinguishment debt               $ 763      
First Amendment to Loan and Security Agreement [Member] | Hercules Term Loan [Member]                      
Debt principal amount           $ 1,000     $ 2,500    
Debt instrument, covenant description           The Amendment modified the liquidity covenant to reduce the required minimum cash and cash equivalents balance by $0.5 million for every $1.0 million in principal paid, up to a minimum of $2.5 million. Once the Hercules Term Loan principal balance is below $2.5 million the Company is only required to maintain a cash and cash equivalents balance equal to the outstanding principal balance on the Hercules Term loan. The minimum cash and cash equivalents balance required to maintain compliance with the minimum liquidity covenant as of December 31, 2017, was approximately $0.6 million.          
First Amendment to Loan and Security Agreement [Member] | Hercules Term Loan [Member] | Minimum [Member]                      
Debt principal amount           $ 500          
Debt principal balance           $ 2,500          
Exchange Agreement [Member] | Hercules and Riverside Debt Assignment [Member]                      
Debt principal amount         $ 2,000            
Warrant to purchase shares of common stock         8,333            
Debt additional principal         $ 2,000            
Number of shares issued         12,500            
Number of shares reduced         11,667            
Exchange Agreement [Member] | Hercules Term Loan [Member]                      
Fair value of warrants     100                
Debt beneficial conversion feature     300                
Financing costs     300                
Debt conversion original debt amount     200                
Exchange Agreement [Member] | Riverside Debt [Member]                      
Debt principal amount         $ 1,000            
Warrant to purchase shares of common stock         8,333            
Warrant exercise price per share         $ 19.56            
Fair value of warrants         $ 100            
Subordinated convertible promissory notes         $ 1,000            
Debt instrument conversion price         $ 17.16            
Common stock closing price per share         $ 19.56            
Debt beneficial conversion feature         $ 200            
Exchange Agreement [Member] | Riverside Debt [Member] | Hercules Term Loan [Member]                      
Debt principal amount     $ 1,000 1,000              
Warrant to purchase shares of common stock     8,333                
Warrant exercise price per share     $ 19.92                
Debt additional principal     $ 1,000 $ 1,000              
Common stock closing price per share     $ 19.92 $ 24.24              
Debt beneficial conversion feature       $ 400              
North Stadium Investments, LLC [Member]                      
Debt principal amount $ 2,500                    
Percentage of loan bear interest rate 10.00%                    
Debt maturity date Jul. 28, 2018                    
Warrant to purchase shares of common stock 55,000                    
Warrant exercise price per share $ 5.04                    
Warrant term 5 years                    
Fair value of warrants $ 200                    
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