Reorganized Modm class.
Create Env class.
Add proper command handling.
Fix syntax error in Env.