added volume control; fixed repeat flag