finished oscilloscope mode and implemented stack