made vars in Command private and added setter and getter for dryRun