Added comments to masterNode.erl