Bunch of refactoring and renaming. Formalized a recorder and a player object. Added half-broken support for playing wav files