Input handling for SoundRecorder, and rename main.c to soundrecorder.c