Added mean, median computations. Added comments. -spk