Added slave nodes creation and small update in master node creation