leading zeros for easy handling in eg matlab and added automatic detection filetype