Main loader and class module