updated renameFiles method in CamStar class