minor syntax changes and added continuous playback