Quarterly report pursuant to Section 13 or 15(d)

Equity (Details Narrative)

v3.10.0.1
Equity (Details Narrative)
$ / shares in Units, $ in Thousands
1 Months Ended 6 Months Ended
May 14, 2018
USD ($)
Integer
$ / shares
shares
May 31, 2018
USD ($)
shares
Jan. 31, 2017
USD ($)
$ / shares
shares
Jul. 31, 2016
USD ($)
$ / shares
shares
Jun. 30, 2018
USD ($)
$ / shares
shares
Jun. 30, 2017
USD ($)
Mar. 31, 2018
shares
Dec. 31, 2017
$ / shares
shares
Warrants to purchase of common stock shares | shares   145,834         832,000  
Gross proceeds of warrants   $ 300,000     $ 7,577 $ 679    
Proceeds from public offering $ 15,000              
Preferred stock stated value | $ / shares         $ 0.01     $ 0.01
Common stock state value | $ / shares         0.01     $ 0.01
Conversion price per share | $ / shares $ 1.45              
Share price | $ / shares         $ 3.00      
Warrants exercise price | $ / shares     $ 6.60          
Proceeds from issuance of units $ 15,000       $ 6,754    
Preferred stock issuance costs 6,800              
Allocated to preferred stock $ 600              
Warrants issuance cost     $ 100,000          
Allocated to warrants     800,000          
Proceeds from warrant exercised         1,633    
Proceeds from issuance of common stock gross     3,900,000          
Proceeds from issuance of common stock net     3,100,000   3,128    
Stock issuance cost     $ 600,000          
Warrants expire term     5 years          
Common stock, issued | shares         7,509,248     3,028,065
Preferred stock, issued | shares         10,928     10,928
Investors [Member]                
Warrants to purchase of common stock shares | shares         832,000      
Warrants exercise price | $ / shares         $ 12.00      
Investors [Member] | Amendment Agreement [Member]                
Warrants to purchase of common stock shares | shares         668,335      
Warrants exercise price | $ / shares         $ 2.125      
Proceeds from warrant exercised         $ 1,400,000      
July 12, 2018 [Member]                
Conversion price per share | $ / shares         $ 0.6543      
Public Offering [Member]                
Stock issued price per shares | $ / shares $ 1,000              
Debt instrument trading days | Integer 40              
Conversion price per share | $ / shares $ 1.4512              
Debt instrument trading percentage 87.50%              
Share price | $ / shares $ 0.48              
Units price per unit | $ / shares $ 1,000              
Secondary Offering [Member]                
Gross proceeds of warrants       $ 11,400,000        
Convertible Preferred Stock and Warrants [Member]                
Proceeds from public offering $ 15,000              
Warrants [Member]                
Warrants to purchase of common stock shares | shares 758              
Warrant term 5 years              
Common stock state value | $ / shares $ 1,100              
Share price | $ / shares         0.01      
Warrants exercise price | $ / shares $ 1.60              
Warrants issuance cost $ 6,900              
Allocated to warrants 700              
Warrants for derivative liability $ 700              
Warrants [Member] | Secondary Offering [Member]                
Warrants to purchase of common stock shares | shares     363,750 1,054,167        
Warrants exercise price | $ / shares       $ 12.00        
New Warrants [Member]                
Warrants exercise price | $ / shares         $ 2.00      
Ownership percentage         100.00%      
Common Stock [Member]                
Stock issued price per shares | $ / shares         $ 6.48      
Stock issuance cost         $ 682 $ 682    
Units price per unit | $ / shares         $ 6.48      
Common Stock [Member] | Secondary Offering [Member]                
Number of shares of common stock sold | shares     741,667          
Common stock, issued | shares       438,167        
Preferred Stock [Member]                
Convertible preferred stock shares conversion | shares         616,000      
Stock issuance cost         $ 668      
Preferred stock, issued | shares         7,392      
Preferred Stock [Member] | Secondary Offering [Member]                
Convertible preferred stock shares conversion | shares       616,000        
Preferred stock, issued | shares       7,392        
Series B Convertible Preferred Stock [Member]                
Convertible preferred stock shares conversion | shares   4,072     4,072      
Preferred stock stated value | $ / shares $ 1,100              
Common Stock [Member]                
Convertible preferred stock shares conversion | shares 11,369,900 3,086,570     3,086,570      
Preferred Stock [Member]                
Convertible preferred stock shares conversion | shares 15,000              
Class A Units [Member]                
Allocated to warrants         $ 2,400,000      
Proceeds from issuance of common stock gross         4,900,000      
Proceeds from issuance of common stock net         2,500,000      
Stock issuance cost         300,000      
Class A Units [Member] | Secondary Offering [Member]                
Convertible preferred stock shares conversion | shares       83        
Warrants to purchase of common stock shares | shares       83        
Stock issued price per shares | $ / shares       $ 1.00        
Number of shares of common stock sold | shares       5,258,000        
Units price per unit | $ / shares       $ 1.00        
Class A Units [Member] | Secondary Offering [Member] | Underwriter [Member]                
Number of shares of common stock sold | shares       1,650,000        
Class B Units [Member]                
Warrants issuance cost         500,000      
Allocated to warrants         3,400,000      
Warrants for derivative liability         5,800,000      
Proceeds from issuance of common stock gross         7,000,000      
Proceeds from issuance of common stock net         3,600,000      
Stock issuance cost         $ 400,000      
Class B Units [Member] | Secondary Offering [Member] | Underwriter [Member]                
Stock issued price per shares | $ / shares       $ 1,000        
Number of shares of common stock sold | shares       7,392        
Units price per unit | $ / shares       $ 1,000        
Convertible Preferred Stock [Member] | Secondary Offering [Member]                
Convertible preferred stock shares conversion | shares         616,000      
Preferred stock, issued | shares         7,392      
Number of common stock received         $ 400,000      
Number of common stock exercise, shares | shares         37,208