| Convertible Instruments - Additional Information (Detail) - USD ($)
 |  |  |  |  | 3 Months Ended | 12 Months Ended |  |  |  |  |  |  |  |  |  |  |  | 
| Jan. 31, 2018 | Jun. 14, 2017 | Sep. 21, 2015 | Jun. 23, 2015 | May 31, 2015 | May 31, 2018 | May 31, 2017 | May 31, 2016 | May 31, 2015 | May 31, 2010 | Mar. 23, 2018 | Nov. 01, 2017 | Aug. 24, 2017 | Jul. 28, 2017 | Jun. 19, 2017 | Aug. 24, 2016 | Mar. 18, 2016 | Mar. 17, 2016 | Feb. 06, 2015 | Sep. 26, 2014 | Apr. 30, 2010 | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock, shares authorized |  |  |  |  |  | 375,000,000 | 350,000,000 |  |  |  |  | 200,000,000 | 375,000,000 |  |  | 350,000,000 | 250,000,000 | 200,000,000 |  |  | 100,000,000 | 
| Common stock, par value |  |  |  |  |  | $ 0.001 | $ 0.001 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Sale of convertible notes |  |  |  |  |  | $ 4,888,500 | $ 1,150,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Amortization of discount on related party convertible notes |  |  |  |  |  |  |  | $ 94,344 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock warrants to purchase shares |  |  |  |  |  |  |  |  |  |  | 3,027,263 |  |  |  |  |  |  |  |  |  |  | 
| Loss on extinguishment of convertible notes |  |  |  |  |  |  |  | (584,177) |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Change in fair value of derivative liability |  |  |  |  |  | 1,690,935 | 2,164,533 | 646,505 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Amortization of convertible notes |  |  |  |  |  | 1,666,017 |  | 1,791,967 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible notes payable, net |  |  |  |  |  |  | 1,058,611 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible notes, repayment of principal and interest |  |  |  |  |  | 259,157 |  | 789,140 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Commission expense |  |  |  |  |  |  |  | 108,000 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Amortization of debt issuance costs |  |  |  |  |  | 435,609 |  | 604,625 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Proceeds from sale of common stock and warrant |  |  |  |  |  | 25,224,212 | 19,133,755 | 37,569,964 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Short-Term Convertible Notes |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Amortization of convertible notes |  |  |  |  |  |  |  | 1,784,000 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible notes payable, net |  |  |  |  |  |  |  | 0 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Alpha Venture Capital Partners, L.P. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock warrants to purchase shares |  |  |  |  |  |  |  |  |  |  |  |  |  | 33,333 |  |  |  |  |  |  |  | 
| Exercise price of warrants, per share |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 1.00 |  |  |  |  |  |  |  | 
| Alpha Venture Capital Partners, L.P. | 3-Month Unsecured Convertible Promissory Note |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible note, face amount |  |  |  |  | $ 1,500,000 |  |  |  | $ 1,500,000 |  |  |  |  |  |  |  |  |  |  |  |  | 
| 2-Year Unsecured Convertible Promissory Note | Alpha Venture Capital Partners, L.P. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible note, face amount |  |  |  |  | $ 2,000,000 |  |  |  | $ 2,000,000 |  |  |  |  |  |  |  |  |  | $ 1,500,000 | $ 2,000,000 |  | 
| Common stock issued upon conversion of notes |  |  |  | 1,000,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Conversion of Preferred Stock to Common Stock |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Undeclared dividend |  |  |  |  |  | 199,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Accrued dividend |  |  |  |  |  | $ 387,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common Stock |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Number of common shares issued upon conversion of preferred stock |  |  |  |  |  | 10 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Conversion price |  |  |  |  |  | $ 0.50 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| AVCP Convertible Notes | Alpha Venture Capital Partners, L.P. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Conversion price |  |  |  |  | $ 0.675 |  |  |  | $ 0.675 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Sale of convertible notes |  |  |  |  | $ 4,000,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Percentage of weighted average price per share |  |  |  |  | 90.00% |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Weighted average price of deemed issued shares |  |  |  |  | $ 0.75 |  |  |  | $ 0.75 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Increase / Decrease in number of shares of common stock |  |  |  |  | 5,185,185 |  |  |  | 5,185,185 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Amortization of discount on related party convertible notes |  |  |  |  |  |  |  | 94,000 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Principal amount of notes converted |  |  |  | $ 3,535,627 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock issued upon conversion of notes |  |  |  | 5,237,966 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| AVCP Convertible Notes | Alpha Venture Capital Partners, L.P. | 3-Month Unsecured Convertible Promissory Note |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Preferred Stock, Share issuance price |  |  |  |  | $ 0.9444 |  |  |  | $ 0.9444 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Conversion price |  |  |  |  | $ 1.00 |  |  |  | $ 1.00 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible notes, interest rate |  |  |  |  | 1.20% |  |  |  | 1.20% |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible note maturity date |  |  |  |  |  | May  05,  2015 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Additional convertible promissory notes that may be issued |  |  |  |  | $ 6,000,000 |  |  |  | $ 6,000,000 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Percentage reduction to conversion price |  |  |  |  |  |  |  |  | 10.00% |  |  |  |  |  |  |  |  |  |  |  |  | 
| AVCP Convertible Notes | 2-Year Unsecured Convertible Promissory Note | Alpha Venture Capital Partners, L.P. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible notes, interest rate |  |  |  |  | 5.00% |  |  |  | 5.00% |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible note maturity date |  |  |  |  |  |  |  |  | Sep. 26,  2016 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock warrant term |  |  |  |  |  |  |  |  | 2 years |  |  |  |  |  |  |  |  |  |  |  |  | 
| AVCP Convertible Notes | 2-Year Unsecured Convertible Promissory Note | Alpha Venture Capital Partners, L.P. | 3-Month Unsecured Convertible Promissory Note |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible note, conversion price description |  |  |  |  |  | The conversion price was subject to (i) adjustment for  stock splits and similar corporate events and (ii) reduction to a price per  share that is 10% below the lowest sale price that is below $.9444 per share,  for shares of common stock sold or deemed sold in future securities offerings,  including sales to AVCP and its designees subject to certain exempt  transactions. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| AVCP Convertible Notes | Warrants Expire on December 31, 2019 | Alpha Venture Capital Partners, L.P. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock warrants to purchase shares |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 250,000 |  | 
| Exercise price of warrants, per share |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 0.50 |  | 
| Warrants, expiration date |  |  |  |  |  | Dec. 31,  2019 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Term of warrants |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 5 years |  | 
| AVCP Convertible Notes | Warrants Exercisable on February 28, 2020 | Alpha Venture Capital Partners, L.P. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock warrants to purchase shares |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 75,000 |  |  | 
| Exercise price of warrants, per share |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 0.50 |  |  | 
| Warrants, expiration date |  |  |  |  |  | Feb. 29,  2020 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Term of warrants |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 5 years |  |  | 
| AVCP Convertible Notes | Additional 5-year Warrant | Alpha Venture Capital Partners, L.P. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Exercise price of warrants, per share |  |  |  | $ 0.675 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Term of warrants |  |  |  | 5 years |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock issued upon conversion of notes |  |  |  | 1,000,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Loss on extinguishment of convertible notes |  |  |  | $ (584,177) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Change in fair value of derivative liability |  |  |  | 647,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Inducement interest |  |  |  | $ 758,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| AVCP Convertible Notes | Previously Reported | Alpha Venture Capital Partners, L.P. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Increase / Decrease in number of shares of common stock |  |  |  |  | 3,500,000 |  |  |  | 3,500,000 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Short-Term Convertible Notes |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible note maturity date | Jan. 31,  2018 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock warrants to purchase shares | 7,718,010 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Exercise price of warrants, per share | $ 0.75 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Term of warrants | 5 years |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Principal amount of notes converted |  |  |  |  |  |  |  | $ 525,000 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock issued upon conversion of notes |  |  |  |  |  |  |  | 723,773 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Inducement interest |  |  |  |  |  |  |  | $ 330,000 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Aggregate original principal amount of Short-Term Convertible Notes | $ 6,000,000 |  | $ 2,700,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Accrued but unpaid interest |  |  |  |  |  |  |  | 17,830 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible notes, repayment of principal and interest | $ 259,000 |  |  |  |  |  |  | 789,000 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Number of shares to be sold | 12,062,728 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Sale of Stock, Price Per Share | $ 0.50 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Proceeds from sale of common stock and warrant | $ 6,000,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Short-Term Convertible Notes | 6-Month Unsecured Convertible Promissory Notes |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Conversion price |  |  | $ 0.675 |  | $ 0.75 |  |  |  | $ 0.75 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible notes, interest rate |  |  |  |  | 7.00% |  |  |  | 7.00% |  |  |  |  |  |  |  |  |  |  |  |  | 
| Proceeds from issuance of debt |  |  |  |  |  |  |  |  | $ 4,000,000 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Debt Instrument, Term |  |  |  |  |  |  |  |  | 6 months |  |  |  |  |  |  |  |  |  |  |  |  | 
| Conversion price, discount rate |  |  | 10.00% |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Short-Term Convertible Notes | Investor Warrants | 6-Month Unsecured Convertible Promissory Notes |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock warrants to purchase shares |  |  |  |  | 1,061,586 |  |  |  | 1,061,586 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Exercise price of warrants, per share |  |  |  |  | $ 0.75 |  |  |  | $ 0.75 |  |  |  |  |  |  |  |  |  |  |  |  | 
| Term of warrants |  |  |  |  | 5 years |  |  |  | 5 years |  |  |  |  |  |  |  |  |  |  |  |  | 
| Short-Term Convertible Notes | Common Stock Warrants |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Exercise price of warrants, per share |  |  | $ 0.675 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Exercise price of warrants, per share, discount rate |  |  | 10.00% |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Short-Term Convertible Notes | Detachable Common Stock Warrants |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Amortization of convertible notes |  |  |  |  |  | $ 1,600,000 | 0 | 1,900,000 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Debt discount |  |  |  |  |  | 1,500,000 | $ 92,000.0 | $ 0.0 |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| 2017 Short Term Convertible Notes |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Conversion price |  |  |  |  |  |  | $ 0.75 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible notes, interest rate |  |  |  |  |  |  | 7.00% |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible note maturity date |  |  |  |  |  |  | Jan. 31,  2018 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock warrants to purchase shares | 7,718,010 |  |  |  |  |  | 383,333 |  |  |  |  |  |  |  | 383,333 |  |  |  |  |  |  | 
| Exercise price of warrants, per share |  |  |  |  |  |  | $ 1.35 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Term of warrants |  |  |  |  |  |  | 5 years |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Aggregate original principal amount of Short-Term Convertible Notes |  |  |  |  |  | 4,890,000 | $ 1,150,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible notes, repayment of principal and interest | $ 259,000 |  |  |  |  | $ 250,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Debt discount |  |  |  |  |  |  | $ 92,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Payment obligation against which common stock issued | 5,788,500 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Accrued but unpaid interest | $ 243,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Number of shares to be sold | 12,062,728 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Sale of Stock, Price Per Share | $ 0.50 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Proceeds from sale of common stock and warrant | $ 6,000,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| 2017 Short Term Convertible Notes | Investor Warrants |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Common stock warrants to purchase shares |  |  |  |  |  | 4,025,656 | 4,025,656 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Exercise price of warrants, per share |  |  |  |  |  | $ 1.00 | $ 1.00 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Term of warrants |  |  |  |  |  | 5 years | 5 years |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| 2017 Short Term Convertible Notes | Detachable Common Stock Warrants |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Amortization of convertible notes |  |  |  |  |  | $ 1,600,000 | $ 0 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Debt discount |  |  |  |  |  | 1,500,000 | $ 92,000.0 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Unamortized issuance costs |  |  |  |  |  | 400,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Amortization of debt issuance costs |  |  |  |  |  | $ 400,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| 2017 Short Term Convertible Notes | Minimum |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Exercise price of warrants, per share |  | $ 1.00 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Warrant covering common stock shares purchased, percentage |  | 25.00% |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| 2017 Short Term Convertible Notes | Maximum |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Exercise price of warrants, per share |  | $ 1.35 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Warrant covering common stock shares purchased, percentage |  | 50.00% |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Series B Convertible Preferred Stock |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Series B Convertible preferred stock, shares issued |  |  |  |  |  | 92,100 | 92,100 |  |  | 400,000 |  |  |  |  |  |  |  |  |  |  |  | 
| Preferred Stock, Share issuance price |  |  |  |  |  |  |  |  |  | $ 5.00 |  |  |  |  |  |  |  |  |  |  |  | 
| Cash proceeds |  |  |  |  |  |  |  |  |  | $ 2,009,000 |  |  |  |  |  |  |  |  |  |  |  | 
| Series B Convertible preferred stock, shares outstanding |  |  |  |  |  | 92,100 | 92,100 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Constructive dividend to Preferred stock holders |  |  |  |  |  | $ 6,000,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Liquidation preference on common shares |  |  |  |  |  | $ 5.00 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Dividends are payable to preferred stock holders |  |  |  |  |  | 0.25 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Convertible preferred stock, par value |  |  |  |  |  | $ 0.001 | $ 0.001 |  |  | $ 0.001 |  |  |  |  |  |  |  |  |  |  |  |