Fix non-working custom output format.
The variable "speed" is not defined in this scope.
Additionally output timestamp and flags.
Merge pull request #3 from deanm/custom

Fix non-working custom output format.