Added settings for average speed

Configure if avg speed is wanted and set sample interval for average