Refined Volume Control

Added a mute function and optimized code