Refactoring and Recording

Refactored code a bit. Now “starts” and “stops” recording based on when
the user types, but there is weird behavior.