XML 47 R37.htm IDEA: XBRL DOCUMENT v3.3.1.900
LONG-TERM DEBT (Details) - USD ($)
Jan. 31, 2016
Jul. 31, 2015
Debt Instrument [Line Items]    
Principal amount $ 20,000,000 $ 20,000,000
Unamortized discount (459,132) (242,522)
Long-term debt, net of unamortized discount 19,540,868 19,757,478
Current portion 11,666,667 1,666,667
Long-term debt, net of current portion $ 7,874,201 $ 18,090,811