reworked Voltage.py and worked on the algorithm for scanning a sample