Clean changelog
Sort expenses and earnings by date
Write the config to the file only if it changed
Write data files only when they change
Fix some warnings