Sort headers in 'stat' output
Delete segments after successful upload
Removed some warnings