added spinner for mid point environment size to gui of teamb
added variable for midpoint set by gui
fixed some memory leaks