removed check for destroy method
add  to modules that points to parent DOM element for that particular module
Added check for module name
comments added