- made logging XML/JSON based for easier interpretation of information
- fixed time since epoch to be duration instead of time_t