add gadget logger

write gadget output in a file

close #61 
close #35 
ok, I opened #78 for this