Synthesis of Carbon Dots for medical and photocatalytic applications