Action serialization and first approach to bug reporting

This PR is essentially about action serialization. 

However, it also includes a little step towards bug reporting by providing an schematic implemantation in the Controller.

Finally, this PR contains some unrelated issues - fixing formatting of a previous PR and a minor refactoring