Added check to see if mod is loaded

added initialize function