Vivek iter3 model fixes

Please pull in this branch for model fixes.

- Fix the buffered input stream issue for sound
- All editing of files happens in temporary directory on system and src/ dirctory remains intact.