log error fixed for wrong value of out of focus time and session running info
error for time corrected for calculating end of session
copyright added to the code
master merged to sachin