combine means.jl and scalarstats.jl
clean up location-related statistics
clean up of scalarstats.jl