Quarterly report pursuant to Section 13 or 15(d)

Stock based compensation, options and warrants (Stock Incentive Plan Options) (Narrative) (Details)

v3.7.0.1
Stock based compensation, options and warrants (Stock Incentive Plan Options) (Narrative) (Details) - USD ($)
3 Months Ended
Mar. 31, 2017
Mar. 31, 2016
Dec. 31, 2016
Dec. 31, 2015
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Number of shares reserved under the Plan     895,000 709,141
Minimum [Member]        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Expiration period 3 years      
Maximum [Member]        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Expiration period 5 years      
Restricted Stock [Member]        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Options granted 165,000      
Options granted, exercise price $ 3.13      
Expiration period 24 months      
Options vested 6,042      
Options forfeited, unvested 20,000      
Fair value of options vested $ 516,000      
Unrecognized compensation cost $ 423,000      
Unrecognized compensation cost, period for recognition 1 year 10 months 24 days      
Stock Incentive Plan [Member]        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Incentive stock options exercised to purchase common shares      
Options granted      
Options granted, exercise price      
Options vested 4,738      
Options forfeited 14,836 7,382    
Options forfeited, unvested 14,000      
Options forfeited, exercise price $ 42.86      
Options expired, exercise price 710.40 $ 26.61    
Options forfeited, unvested, exercise price $ 3.00 $ 15.13    
Fair value of options vested $ 51,000 $ 127,000    
Expected to vest 63,000      
Unrecognized compensation cost $ 45,000      
Stock Incentive Plan [Member] | Vested Options [Member]        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Options forfeited 836 3,762    
Stock Incentive Plan [Member] | Unvested Options [Member]        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Options forfeited 14,000 3,620