Initclass is added to the main class

This to avoid the WebApp dependency