Centralize struct in a single file + clean

- Use logging system
- Use nicely formatted json (starting with a lowercase char)