Make newlines a bit more logical
Put a space after log level
Add window events