Logic fixes
Added master alone mode

Use -m master to run simulation only on the master node
Implements logic for min_cpu_required for different modes