Distinguish between stderr and stdout
Clean up Elixir code