Microphone code formatting & refactoring