[bugfix] Correcting path mask.
[feature] CSV generation.
[refactor] Cleaning up code. Stdout instead of print too.