Deleting unnecessary commented code and readjusting typing sound stop method