add tar file function and fixed bug in concatenation when hourly files are not used