ACCRUED EXPENSES (Details) - USD ($) $ in Thousands |
Dec. 31, 2016 |
Dec. 31, 2015 |
|---|---|---|
| ACCRUED EXPENSES. | ||
| Accrued bonuses | $ 2,210 | $ 1,474 |
| Accrued incentive compensation | 1,160 | |
| Accrued development costs | 2,485 | 80 |
| Accrued payroll and related benefits | 1,217 | 93 |
| Accrued sales and marketing | 801 | 157 |
| Accrued other operating costs | 572 | 186 |
| Accrued audit and legal | 416 | 209 |
| Accrued interest | 18 | 29 |
| Total accrued expenses | $ 8,879 | $ 2,228 |