renamed addonManager and added public Main constructor