Added loop and volume support

Added parameters for volume and loop functionality