XML 50 R40.htm IDEA: XBRL DOCUMENT v3.5.0.2
LONG-TERM DEBT (Details) - USD ($)
Oct. 31, 2016
Jul. 31, 2016
Long-term Debt, by Current and Noncurrent [Abstract]    
Principal amount $ 20,000,000 $ 20,000,000
Unamortized discount (506,493) (801,822)
Long-term debt, net of unamortized discount $ 19,493,507 $ 19,198,178