fixed mean bug by introducing to global time and screen, removed a lot of the dataset function usage due to them being VERY slow (15x speed difference!!)