Updated SoundMonitor.java. Can be run in the background with a getter to obtain the current sound level.