update datecode - incomprate small fixes