Investigations of phytochemicals density functional theory and dyeing applications of polyphenolics from secondary metabolites