Parse mode correctly

Fixes #4.
Use flat Travis badge
1.0.2