STOCKHOLDERS' EQUITY (Details Textual) - USD ($) | Jul. 13, 2016 | Mar. 07, 2016 | Nov. 30, 2017 | Jul. 31, 2017 | Jun. 23, 2017 | May 31, 2017 | Apr. 30, 2017 | Mar. 31, 2017 | Jan. 31, 2017 | Nov. 30, 2016 | Aug. 31, 2016 | Jul. 31, 2016 | Jun. 30, 2016 | Dec. 31, 2017 | Sep. 30, 2017 | Jun. 30, 2017 | Dec. 31, 2017 | Dec. 31, 2016 | Oct. 13, 2017 | Aug. 31, 2017 | Apr. 30, 2016 | Mar. 31, 2016 | Dec. 31, 2012 |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights | | | | | | | | | | | | | | | | | | 375,510 | | | | | |
Stock Issued During Period, Shares, New Issues | 202,500 | | | | | | 11,600 | | | | | | | | | | | | | | | | |
Proceeds from Issuance of Common Stock | | | | | | | $ 112,000 | | | | | | | | | | $ 419,000 | $ 673,000 | | | | | |
Convertible Preferred Stock, Terms of Conversion | | with a purchase price of $1.00 per share and convertible into one share of the Companys common stock and having an 8%, noncumulative dividend. | | | | | | | | | | | | | | | | | | | | | |
Shares Issued, Price Per Share | $ 45 | | | | | | $ 11.50 | | | | | | | | | | | | | | | | |
Stock Issued During Period, Value, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | | | 673,000 | | | | | |
Convertible Preferred Stock Warrants Issued upon Conversion | | | | | | | | | | | | 62,276 | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized | | | | | | | | | | | | | | | | | | | | | | | 97,035 |
Share-based Compensation | | | | | | | | | | | | | | | | | 1,111,000 | $ 966,000 | | | | | |
Stock Issued During Period, Value, New Issues | | | | | | | $ 133,400 | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period | | | | | | | | | 4,500 | | | | | | | | | | | | | | |
Share Price | | | | | | | | | | | | | | | | | | | $ 4.50 | | | | |
Number Of Warrants Exercised | | | 288,750 | | | | | | | | | | | | | | | | | | | | |
Proceeds from Warrant Exercises | | | $ 1,190,000 | | | | | | | | | | | | | | | | | | | | |
Warrant Conversions, Inducements | | | | | | | | | | | | | | | | | 896,000 | | | | | | |
convertible promissory notes [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Outstanding | | | | | | | | | | | | | | | | | | | | 53,860 | | | |
Shares Issued, Price Per Share | | | | | | | | | | | | | | | | | | | | $ 20 | | | |
Conversion Debt [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Outstanding | | | | | | | | | | | | | 10,204 | | | | | | | | | | |
Shares Issued, Price Per Share | | | | | | | | | | | | | $ 20 | | | | | | | | | | |
Common Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Outstanding | | | | | 17,241 | 3,939 | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | | | 48,485 | | | | | |
Shares Issued, Price Per Share | | | | | $ 5.80 | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Value, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | | | $ 0 | | | | | |
Conversion of Stock, Shares Issued | | | | | | | | | | | | | | | | | | 75,680 | | | | | |
Exercised Price Per Share | | | | | | $ 0.052 | | | | | | | | | | | | | | | | | |
Proceeds from Related Party Debt | | | | | $ 100,000 | | | | | | | | | | | | | | | | | | |
Common Stock [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Shares Issued, Price Per Share | | | | | $ 0.50 | | | | | | | | | | | | | | | | | | |
Restricted Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Outstanding | | | | | | | | | | | | | | | | | | | | | 17,100 | 17,100 | |
Stock Issued During Period, Shares, Restricted Stock Award, Gross | | | | | | | | | | | 4,000 | | | | | | | | | | | | |
Restricted Stock or Unit Expense | | | | | | | | | | | | | | $ 76,188 | | $ 56,150 | | | | | | | |
Shares Issued, Price Per Share | | | | | | | $ 20 | | | | | | | | | | | | | | | $ 20 | |
Share-based Compensation | | | | | | | | | | | $ 7,000 | | | | | | $ 28,000 | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period | | | | | | | | | 29,000 | | | | | | | 8,750 | 65,257 | | | | | | |
Stock Based Compensation To Be Amortized | | | | | | | | | | | | | | $ 41,113 | | $ 45,000 | | | | | | | |
Stock Based Compensation To Be Amortized Term | | | | | | | | | | | | | | 22 months | | 16 months | | | | | | | |
Restricted Stock [Member] | Product Marketing [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | 1,500 | | | | | | | |
Restricted Stock [Member] | Employee Severance Agreement [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | 1,250 | | | | | | | |
Restricted Stock [Member] | Investor Relations Firm [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | 2,500 | | | | | | | |
Restricted Stock [Member] | Special Committee Of Board Of Directors [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Restricted Stock or Unit Expense | | | | | | | | | | | | | | | | $ 3,500 | | | | | | | |
Restricted Stock [Member] | Employees [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Gross | | | | | | | | | | | | | | | | 9,500 | | | | | | | |
Restricted Stock or Unit Expense | | | | | | | | | | | | | | | | $ 22,000 | | | | | | | |
Series A Preferred Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues | | | | | | | | | | | | 13,404 | | | | | | | | | | | |
Convertible Preferred Stock, Shares Issued upon Conversion | | | | | | | | | | | | 62,276 | | | | | | | | | | 3,000,000 | |
Sale of Stock, Number of Shares Issued in Transaction | | | | | | | | | | | | | 2,802,430 | | | | | | | | | | |
Proceeds from Issuance of Private Placement | | | | | | | | | | | | | $ 2,400,000 | | | | | | | | | | |
Shares Issued, Price Per Share | | | | | | | | | | | | $ 45 | | | | | | | | | | | |
Jawahar Tandon [Member] | Restricted Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized | | | | | | | | | | | | | | | | | | 12,500 | | | | | |
Share-based Compensation | | | | | | | | | | | | | | | | | | $ 563,000 | | | | | |
IPO [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues | | | | | | | | 22,600 | | | | | | | | | | 202,500 | | | | | |
Conversion of Stock, Shares Issued | | | | | | | | | | | | | | | | | | 140,501 | | | | | |
Private Placement [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from Issuance of Common Stock | | | | | | | | $ 307,000 | | | | | | | | | | | | | | | |
Shares Issued, Price Per Share | | | | | | | | $ 15 | | | | | | | | | | | | | | | |
Stock Issued During Period, Value, New Issues | | | | | | | | $ 339,000 | | | | | | | | | | | | | | | |
Private Placement [Member] | Board of Directors Chairman [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Gross | | | | | | | | | | 15,151 | | | | | | | | | | | | | |
Proceeds from Issuance of Private Placement | | | | | | | | | | $ 226,000 | | | | | | | | | | | | | |
Shares Issued, Price Per Share | | | | | | | | | | $ 16.50 | | | | | | | | | | | | | |
Stock Issued During Period, Value, Restricted Stock Award, Gross | | | | | | | | | | $ 250,000 | | | | | | | | | | | | | |
Private Placement [Member] | Investor [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, New Issues | | | | 4,748 | | 8,000 | | | | 33,333 | | | | | | | | | | | | | |
Proceeds from Issuance of Private Placement | | | | | | | | | | $ 446,000 | | | | | | | | | | | | | |
Shares Issued, Price Per Share | | | | $ 11.50 | | $ 11.50 | | | | $ 15 | | | | | | | | | | | | | |
Stock Issued During Period, Value, New Issues | | | | | | | | | | $ 500,000 | | | | | | | | | | | | | |
Chief Executive Officer [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Warrant or Right, Outstanding | | | | | | | | | | | | | | 154,416 | | | 154,416 | 399,101 | | | | | |
Independent Employees [Member] | Restricted Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Gross | | | | | | | | | | | | | | | 3,000 | | | | | | | | |
Restricted Stock or Unit Expense | | | | | | | | | | | | | | | $ 33,000 | | | | | | | | |
Three Officers and One Board [Member] | Restricted Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Gross | | | | | | | | | | | | | | 7,000 | | | | | | | | | |
Chairman and Chief Executive Officer [Member] | Restricted Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | |
Stock Issued During Period, Shares, Restricted Stock Award, Gross | | | | | | | | | | | | | | 10,000 | | | | | | | | | |