| Dec 31, 2011 | Dec 31, 2012 | Dec 31, 2013 | Dec 31, 2014 | Dec 31, 2015 | Dec 31, 2016 | Dec 31, 2017 | Dec 31, 2018 | Dec 31, 2019 | Dec 31, 2020 | Dec 31, 2021 | Dec 31, 2022 | Dec 31, 2023 |
|---|
| Net income (loss) | - | - | 8 | -5,871,642 | -22,516,889 | -3,950,642 | -8,138,125 | -1,983,579 | -5,485,553 | -11,396,175 | -7,661,177 | 2 | -72 |
|---|
| Net income from discontinued operations, net of tax | - | - | - | - | - | - | - | - | - | - | - | 19 | 54 |
|---|
| Net loss from continuing operations | - | - | - | - | - | - | - | - | - | - | -30,404,559 | -17 | -126 |
|---|
| Stock-based compensation expense | 138,859 | 178,968 | 175,152 | 332,266 | 423,911 | 527,869 | 606,446 | 659,836 | 642,840 | 656,111 | 862,564 | 2 | 2 |
|---|
| Depreciation and amortization | 161,048 | 711,555 | 2 | 4 | 7 | 6 | 7 | 7 | 7 | 7 | 594,092 | 17 | 31 |
|---|
| (Reduction in) provision for bad debt | - | - | - | 2 | 654,820 | - | - | - | - | 297,289 | 646,910 | 0 | -0 |
|---|
| Loss (gain) on commodity derivative contracts | - | - | - | - | - | - | - | 1 | -2,458,359 | 3 | -2,257,592 | -88 | 3 |
|---|
| Provision for environment clean up | - | - | - | - | - | - | - | - | - | - | - | 1 | - |
|---|
| Gain on forgiveness of debt | - | - | - | - | - | - | - | - | - | - | 4 | - | - |
|---|
| Net cash settlement on commodity derivatives | - | - | - | - | - | - | - | - | - | -4,233,092 | 2 | 93 | -7 |
|---|
| Loss on sale of assets | - | - | - | - | 13,944 | 10 | 445 | 45,553 | -74,111 | -124,515 | -64,278 | -0 | - |
|---|
| Asset Impairment Charges | - | - | - | - | - | - | - | - | - | - | 2 | - | - |
|---|
| Amortization of debt discount and deferred costs | - | - | - | - | - | - | - | 584,336 | 573,908 | 47,826 | 1 | 49 | 79 |
|---|
| Deferred income tax benefit | -1,930,000 | -1,432,000 | -1,944,000 | - | 5 | - | -274,423 | - | - | - | - | -7,171,000 | -13 |
|---|
| Fair Value Adjustment of Warrants | - | - | - | - | - | - | - | - | - | -1,638,804 | 16 | -8 | -8 |
|---|
| Accounts receivable | -3,953,496 | 128,184 | 3 | -714,698 | -1,929,871 | 5 | 336,772 | -2,143,834 | 3 | -2,641,220 | 677,786 | 27 | 3 |
|---|
| Inventory | -2,506,999 | 551,438 | 3 | -1,891,932 | -9,072,305 | 809,647 | 2 | 2 | -1,543,918 | -3,084,152 | 2 | -3 | 45 |
|---|
| Prepaid expenses | - | -247,337 | 571,254 | 12,586 | -48,438 | 1 | -897,285 | 597,146 | 257,894 | -197,715 | 2 | 27 | 21 |
|---|
| Accounts payable | - | 304,861 | 4 | 7 | -8,539,803 | -1,893,370 | 878,042 | 1 | -1,171,433 | 2 | 835,914 | 11 | 54 |
|---|
| Accrued expenses | - | - | - | - | - | - | - | 42,625 | 2 | -3,047,606 | 2 | 78 | -10 |
|---|
| Other assets | - | - | - | - | - | 36,800 | -77,833 | 176,342 | 223,995 | 646,059 | 100,000 | -0 | 1 |
|---|
| Net cash (used in) provided by operating activities from continuing operations | - | - | - | - | - | - | - | - | - | - | -15,519,636 | 71 | -58 |
|---|
| Deposit for refinery purchase and related costs | - | - | - | - | - | - | - | - | - | - | 14 | - | - |
|---|
| Internally developed or purchased software | - | - | - | - | - | - | - | - | 489,093 | 49,229 | - | 0 | 3 |
|---|
| Proceeds from Divestiture of Businesses | - | - | - | - | - | - | - | - | - | - | - | - | 92 |
|---|
| Redemption of noncontrolling entity | - | - | - | - | - | - | - | - | - | - | - | 1 | - |
|---|
| Proceeds from the sale of assets | - | - | - | - | 92,271 | 20,900 | 327,718 | - | 232,020 | 74,965 | 75,168 | 0 | 0 |
|---|
| Acquisition of business, net of cash | - | - | - | - | - | - | - | - | - | 2 | -2,058 | 228 | 8 |
|---|
| Purchase of fixed assets | 63,055 | 1 | 3 | 6 | 2 | 2 | 2 | 2 | 3 | 7 | 1 | 76 | 140 |
|---|
| Net cash used in investing activities from continuing operations | - | - | - | - | - | - | - | - | - | - | -14,730,471 | -302 | -59 |
|---|
| Line of credit payments, net | - | - | -6,750,000 | - | - | 981,918 | 2 | -746,891 | -568,406 | -3,142,784 | -133,446 | - | - |
|---|
| Proceeds from Warrant Exercises | 306,250 | 112,625 | - | - | - | - | - | - | - | - | 7 | 1 | 1 |
|---|
| Proceeds from Inventory Financing Agreements | - | - | - | - | - | - | - | - | - | - | - | 117 | 22 |
|---|
| Proceeds from Contributed Capital | - | - | - | - | - | - | - | - | - | - | 2,260 | - | 3 |
|---|
| Distribution to non-controlling interest | - | - | - | - | - | - | - | - | 285,534 | - | 169,368 | 0 | - |
|---|
| Redemption of redeemable noncontrolling interest | - | - | - | - | - | - | - | - | - | - | - | 51 | - |
|---|
| Payments on finance leases | - | - | - | - | - | - | - | - | 165,598 | 402,560 | 586,612 | 1 | 2 |
|---|
| Proceeds from Notes Payable | - | - | - | 41 | 2 | 8 | 18 | 4 | 3 | 8 | 144 | 173 | 68 |
|---|
| Payments made on notes payable | - | - | - | - | - | - | - | - | 5 | 10 | 16 | 19 | 40 |
|---|
| Net cash provided by financing activities from continuing operations | 306,250 | 280,663 | -54,806 | 45 | 8 | -801,308 | 5 | -863,300 | 3 | 15 | - | - | 52 |
|---|
| Net cash (used in) provided by operating activities | - | - | - | - | - | - | - | - | - | - | 25 | 25 | -0 |
|---|
| Net cash used in investing activities | - | - | - | - | - | - | - | - | - | - | -3,093,278 | -5 | - |
|---|
| Net cash provided by (used in) discontinued operations | - | - | - | - | - | - | - | - | - | - | 22 | 21 | -0 |
|---|
| Net change in cash and cash equivalents and restricted cash | - | - | - | - | - | - | - | - | 1 | 7 | 126 | 10 | -66 |
|---|
| Cash paid for interest | - | - | - | - | - | - | - | 3 | 3 | 1 | 2 | 34 | 47 |
|---|
| Series B and B-1 Preferred Stock | - | - | - | - | - | - | 119,440 | 7 | 3 | 3 | 25 | - | - |
|---|
| Conversion of Stock, Amount Converted | 249 | 2,914 | 194 | 689 | - | - | - | - | - | - | - | - | - |
|---|
| Preferred Stock, Accretion Of Discount | - | - | - | - | - | - | - | - | 2 | 2 | 507,282 | - | - |
|---|
| Temporary Equity, Accretion to Redemption Value, Adjustment | - | - | - | - | 780,069 | 2 | 2 | 3 | 2 | 15 | 2 | 0 | - |
|---|
| Lease Obligation Incurred | - | - | - | - | - | - | - | 450,098 | 621,000 | 1 | - | 46 | 24 |
|---|
| Fair Value of Assets Acquired | - | - | - | - | - | - | - | - | - | - | - | 20 | 55 |
|---|
| Reclass derivative liabilities | - | - | - | - | - | - | - | - | - | - | - | 79 | - |
|---|
| Conversion of Convertible Senior note, including inducement common stock | - | - | - | - | - | - | - | - | - | - | - | - | 101 |
|---|