Rename argument, remove default argument, extract error handling
Rewrite if statement
Replace Mhwd::hexToInt with std::stoi
Extract Mhwd::proceedWithInstall. Use const& instead of pointer
Remove useless code
Use unique_ptr. Code style.