updated code

I updated to prevent respeeding of clouds and also updated to allow
sound to save in local storage.