Use stl instead of loops
Replace pointer with reference
Add const modifier
Replace pointer with reference
Use smart pointers
Rename Mhwd::checkExist to Mhwd::dirExists