Add tone generation code
Add doit so that elixir can be run from the shell - not pretty