Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Operating activities:    
Net loss $ (25,328) $ (10,780)
Gain (loss) from discontinued operations 502 (972)
Loss from continuing operations (25,830) (9,808)
Adjustments to reconcile net loss to net cash used in operating activities - continuing operations:    
Depreciation 424 484
Amortization of debt discount and issuance costs 2,516  
Share-based compensation expense 708 784
Change in fair value of derivative liabilities and loss on debt extinguishment 11,395 (7,127)
Loss (gain) on sale of assets 21 (160)
Bad debt expense 26 799
Changes in operating assets and liabilities:    
Accounts receivable, net 1,346 3,564
Costs in excess of billings on uncompleted contracts 911 1,995
Inventory, net 549 2,588
Deferred costs on uncompleted contracts 537 1,076
Net investment in sales-type leases and other current assets 97 420
Other non-current assets (250) (274)
Accounts payable (3,217) (4,721)
Accrued liabilities 22 (738)
Billings in excess of costs on uncompleted contracts (751) (1,126)
Deferred revenue and other current liabilities 115 (1,834)
Other liabilities 68 (110)
Net cash used in operating activities - continuing operations (11,313) (14,188)
Net cash (used in) provided by operating activities - discontinued operations (981) 1,230
Net cash used in operating activities (12,294) (12,958)
Investing activities:    
Purchases of property and equipment (67) (26)
Proceeds from sale of property and equipment 17 181
Net cash provided by (used in) investing activities (50) 155
Financing activities:    
Proceeds from exercise of warrants and issuance of common stock, net of costs 5,152 15,025
Proceeds from convertible debt, net of costs and amount held in restricted cash 8,929  
Proceeds from the issuance of convertible preferred stock, net of costs 2,228  
Principal borrowings on revolving line of credit 18,094 46,071
Principal payments on revolving line of credit (19,713) (49,646)
Net cash provided by financing activities 14,690 11,450
Net increase (decrease) increase in cash 2,346 (1,353)
Cash at beginning of year 594 1,947
Cash at end of year 2,940 594
Supplemental cash flow information:    
Income taxes paid 19 21
Interest paid 212 249
Non-cash items    
Change in common stock warrant liability in conjunction with exercise/extinguishment of warrants 133 7,262
Consideration transferred to Elemental Energy, LLC; released 38 shares of class A common stock   1,244
Common stock warrant liability recorded in conjunction with equity funding   12,246
Issuance of Class A common stock to related party for conversion of subordinated debt and accrued interest   $ 4,238
Transfer from accounts payable to other liabilities for amounts paid by insurance carrier 1,510  
Transfer of accounts payable to vendor line of credit 1,675  
Payment on line of credit in Class A common stock 167  
Debt discount arising from warrants issued in conjunction with 2016 Note Offering 20  
Interest paid with common stock 337  
Embedded derivative liability with 2016 Note Offering 45  
Accrued closing costs on the 2016 Note Offering $ 25