Implemented real time plotting. Added getdata.py