Main class refactoring. Add src file with all includes.