XML 80 R48.htm IDEA: XBRL DOCUMENT v3.5.0.2
LONG-TERM DEBT (Details 1) - USD ($)
Jul. 31, 2016
Jul. 31, 2015
Debt Instrument [Line Items]    
Principal amount $ 20,000,000 $ 20,000,000
Unamortized discount (801,822) (242,522)
Long-term debt, net of unamortized discount 19,198,178 19,757,478
Current portion 0 1,666,667
Long-term debt, net of current portion $ 19,198,178 $ 18,090,811