XML 50 R38.htm IDEA: XBRL DOCUMENT v3.6.0.2
Stock-based compensation Stock-based compensation expense (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Oct. 31, 2016
Oct. 31, 2015
Oct. 31, 2016
Oct. 31, 2015
Disclosure of Compensation Related Costs, Share-based Payments [Abstract]        
Stock-based compensation benefit $ (83) $ 87 $ (367) $ 50
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Restricted stock based compensation expense $ 151 $ 79 $ 819 $ 337