Mean, median, mode

Added mean, median, mode
Code cleaning
Rushed commit for testing

Added visual display for the new parts of the analyser.
Rushed for testing purposes, code clean up in future commit.