Minor formatting fixes.
Removing `dist` folder autocreation.
Refactoring file writing to improve performance on removable media.