rename 'w' to 'max_width'

Improves legibility a bit.
fix crash when header is missing

Not all events have all fields, e.g. LOCATION is optional.
Merge pull request #1 from aspiers/missing-fields

Fix crash when header is missing