Improved statistics calculations

Also added new "last lap time" field to statistics view.