cardiff: Adding a few comments

It's good to explain a little bit how the main() is divided