Added sum and average functions
Added less syntax highlight