Remove ismodule parameter from CreateAddonObject and use name parameter as a replacement.
Remove commited out local name in CreateAddonObject.