cleaned up some unused code
impleented multiple simultaneous charts