Change dtstamp and uid if update detected.
Fix bug for nil.
Update .gitignore