XML 66 R51.htm IDEA: XBRL DOCUMENT v3.8.0.1
Related Party Transactions (Details)
$ in Thousands
9 Months Ended 12 Months Ended
Sep. 30, 2017
USD ($)
Dec. 31, 2016
USD ($)
Related Party Transaction [Line Items]    
Balance, beginning of the period $ 26,347 $ 36,053
Interest payable transferred to principal balance 1,560 2,977
Accretion of discount on loans 1,250 1,996
Capitalized financing fee and legal fees 0 (930)
Reduction of debt upon isssuance of warrants 0 (3,090)
Repayment of loans and interest 0 (10,659)
Balance, end of the period 29,157 26,347
Current portion 9,061 0
Non-current portion $ 20,096 $ 26,347