Modified inject and unload methods, removed onCodeLoaded method(it has been replaced by specified callbacks).