Abstract the file writing
Add sample config file