added valid master key check to attic service
strtol test in main, removed freopen, time stamp diff wip