Fixed 'bug' in all three modules. I was unable to register any of the mo...

...dules with register(?PROCNAME,spawn(?MODULE, init, [Host, Opts])). Intead, I used the one that is currently in place. Maybe this was an issue because I have the latest version of ejabberd. I'm not very sure about the cause of the problem but now it seems to work