engine/partitions: address comments and add addJobToMachine