resetMega2ENV function

return an initialized environment