Convertible Notes and Convertible Preferred Stock (Details 1) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2016 |
Dec. 31, 2015 |
|
| Statement of Changes in Shareholders' Equity | ||
| Fair value of preferred stock liabilty conveted to common stock | $ 21,604 | |
| Issuance of warrants for preferred stock offering | 3,552 | |
| Statement of Operations: | ||
| Change in fair value of derivative liabilities and loss on debt extinguishment | 11,395 | $ (7,127) |
| Net proceeds received from convertible notes offering | 2,346 | $ (1,353) |
| Class A common stock | ||
| Statement of Changes in Shareholders' Equity | ||
| Fair value of preferred stock liabilty conveted to common stock | 17,308 | |
| Issuance of warrants for preferred stock offering | 2,502 | |
| Statement of Operations: | ||
| Amortization of debt discount and interest expense | (2,321) | |
| Change in fair value of derivative liabilities and loss on debt extinguishment | (8,665) | |
| Increase in stockholders' deficit | 8,824 | |
| Net proceeds received from convertible notes offering | $ 8,929 | |