Remove debug log statements
Check for valid token
Add time series log storage
Add comments and format code
Clean up logEvent signature
Add timing info to log storage