Setup basic code architecture: init, MG.epr, MG.epr.stage