fix race condition leading to crash when saving to wav is enabled
add gitignore file
adjust .gitignore