Add extension to ref filename to permit using refs under the same name as existing refs
Fix listing of refs
Clarify an error message