Add a real atoum script and fix bugs