changed default parent to document.body
added modulName to use for the log functions
if available use console.debug() instead of console.log()