Rewrote more of  adding self variables take data and added some ideas to serial tools.