Refined flashlight controls and cleaned project