changes double equals to equals method to correct checking
Fixes the resource loading issue so that it works on java 1.6 and also 1.7