Fixed shutting down error I introduced in soundmix and updated writeToScriptLog to work the same as writeToLogFile so arguments can be used. Also updated control.c to use printf instead of writeToLogFile for debugging purposes on visual studio/console debugging.