various subroutines

working on mean and stddev subroutines