Better working version with graphing and working on the raspberry pi.