Code quality improvement batch #3 (resource download fix, leak fix, onMouseClick documentation)