Adding a timer for sending emails

And cleaning up some of the code.  Also for some reason 44.1k hz is no
longer working…48k hz does work though