Added code to remove noise from recording. Removed RecorderThread inner class as it was no longer needed.