Ensure that you specify the type of the value returned by the function in the Return Type option.
Uploading the files ensures that Dreamweaver features such as Live Data view and Preview In Browser work properly.
Dreamweaver writes a CFC file and saves it in the folder you specified. The new component also appears in the Components panel (after clicking Refresh).