added lock files to resync the script
processing a "date type value"
added comment describing algorithm for "date stamp"
added D_START to output